Skip to content

chore: merge main into version-1 - #1196

Open
jycouet wants to merge 16 commits into
version-1from
merge-main-into-version-1
Open

chore: merge main into version-1#1196
jycouet wants to merge 16 commits into
version-1from
merge-main-into-version-1

Conversation

@jycouet

@jycouet jycouet commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Brings main into version-1 in a single merge commit.

Conflict resolutions:

  • keep the v1 side (verkit instead of semver, deprecated APIs removed), while taking main's newer package-manager-detector@^1.8.0
  • create/add: combine main's "skip formatting when install failed" with v1's strategy: 'files-only'
  • svelte-migrate is a deprecated stub on v1, so its changeset entry and deps are dropped

sacrosanctic and others added 5 commits July 23, 2026 15:46
* main

* throw if pm isnt installed

* throw

* nit

* changeset

* tmv sv ordering

* sh is unknwon on windows (execSync know about it)

* hint to label & next step

* caching agent install, keep none by default

---------

Co-authored-by: jycouet <jycouet@gmail.com>
Bump package-manager-detector to ^1.8.0, the first release with nub in its
agent and command tables. sv-utils bundles the library at build time, so the
published bundle only knows about nub once rebuilt against >=1.8.0.
)

When prettier is among the scaffolded add-ons, format the whole project rather
than only the add-on-touched files, so a fresh project passes its own lint.
Prettier's ignore rules still apply.

Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
* feat: addOption in setup phase

* fmt²

* okay cut

* humm

* fmt

* chore: update api surface

* test: await async setupAddons in engine tests

* Update packages/sv/src/core/config.ts

Co-authored-by: Scott Wu <sw@scottwu.ca>

* Update packages/sv/src/core/config.ts

Co-authored-by: Scott Wu <sw@scottwu.ca>

* feat: typesafe addOption keys via defineAddon setup generic

- addOption now constrains key + question type from defineAddon<SetupValues>()
- regenerate api surface

---------

Co-authored-by: Scott Wu <sw@scottwu.ca>
Resolve conflicts: keep verkit-based semver utils and the v1 deprecation removals, keep main's smart package manager selection + `addOption` setup phase, and combine both format flows (skip formatting when install fails, keep the 'files-only' strategy).
@pkg-svelte-dev

pkg-svelte-dev Bot commented Jul 25, 2026

Copy link
Copy Markdown

Install the latest version of sv from 8b97321:

pnpm add https://pkg.svelte.dev/sv/c/8b97321bdc3f24864f0982a6d745d787a35d191b

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/cli/pr/1196

@changeset-bot

changeset-bot Bot commented Jul 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8b97321

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@sacrosanctic

Copy link
Copy Markdown
Contributor

will you set default branch to version-1 as well?

@jycouet

jycouet commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

will you set default branch to version-1 as well?

I'm not sure, we can still push to the 2 places?
And release a non next thing.

jycouet and others added 10 commits July 30, 2026 12:52
* mv

* feat: welcome `ai-tools`

* abc

* don't format skills

* opencode -> plugin, claude question, subagents

* fmt

* cleanup snap

* snap

* update new path

* feat(ai-tools): choose Svelte plugin or individual tools per client

- delivery option: Svelte plugin (Claude via committed .claude/settings.json, opencode via opencode.json) or individual tools
- granular MCP/skills/sub-agents selection; rename `setup` -> `mcpSetup`
- consolidate per-client config into a single `CLIENTS` registry

* feat(ai-tools): install skills for cursor, gemini and vscode

* feat(ai-tools): CLAUDE.md imports AGENTS.md to keep a single source of truth

* chore(ai-tools): rename RX_MD to REGEX_MD

* feat(ai-tools): warn in next steps when plugin and loose skill/agent files coexist

* fmt

* fix(ai-tools): 'other' client now writes AGENTS.md

* fix(ai-tools): only ask tool/MCP questions when a client can use them

* Update packages/sv/src/create/shared/+skills/svelte-code-writer/SKILL.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update documentation/docs/30-add-ons/01-ai-tools.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update documentation/docs/30-add-ons/01-ai-tools.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update documentation/docs/30-add-ons/01-ai-tools.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update documentation/docs/30-add-ons/01-ai-tools.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/addons/ai-tools.ts

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/addons/ai-tools.ts

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+skills/svelte-code-writer/SKILL.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+skills/svelte-code-writer/SKILL.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+skills/svelte-code-writer/SKILL.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+skills/svelte-code-writer/SKILL.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/addons/ai-tools.ts

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/addons/ai-tools.ts

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+agents/svelte-file-editor.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+agents/svelte-file-editor.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+agents/svelte-file-editor.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+agents/svelte-file-editor.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+agents/svelte-file-editor.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+agents/svelte-file-editor.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+agents/svelte-file-editor.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* Update packages/sv/src/create/shared/+agents/svelte-file-editor.md

Co-authored-by: Rich Harris <hello@rich-harris.dev>

* update skills

* fix: drop stale reference files and update ai-tools snapshots

---------

Co-authored-by: Rich Harris <hello@rich-harris.dev>
…rrors (#1198)

* fix: drop obsolete pnpm allowBuilds entries and surface real format errors

* test: install generated project outside the repo workspace
…t 3 shape (#1199)

* feat(sv-utils): add SvelteKit 3 helpers

Version detection, the `$lib` -> `#lib` move and the generated `$app/tsconfig`, so add-ons stop hardcoding kit-version-specific shapes.

* fix(core): make `runsAfter` actually order add-ons

It sorted by number of constraints, so an add-on could still run before one it declared it runs after. Topologically sort instead, seeded with the previous order so unconstrained add-ons keep their relative position.

* fix(experimental): create manages `#lib` and the rest of the SvelteKit 3 shape

- skip `handleRenderingErrors`/`explicitEnvironmentVariables`, removed in kit 3
- extend `$app/tsconfig` and own `include`, keeping deliberate compiler option overrides
- rewrite `$lib` to `#lib` and declare the subpath imports Vite resolves from
- drizzle drops the removed `typescript.config` hook; `defineEnvVars` moves to `@sveltejs/kit/env`
- better-auth and paraglide emit the right lib prefix and route type

* test(cli): cover `kit@next` with a real install, build and check

No snapshot: the point is that the project works, not what it looks like.

* Update packages/sv/src/addons/drizzle.ts

Co-authored-by: Scott Wu <sw@scottwu.ca>

* Update packages/sv-utils/src/kit3.ts

Co-authored-by: Scott Wu <sw@scottwu.ca>

* test(cli): cover better-auth on `kit@next`, finish the `KIT3_TSCONFIG_DEFAULT` rename

better-auth has the most `#lib` imports, so it gets its own `kit@next` install/build/check case. It
can't join the existing one: kit treats any `remote.js` as a remote module, including the one `jose`
ships, so `remoteFunctions` breaks the build.

Also rewords the changeset and updates the two remaining `KIT3_TSCONFIG_INHERITED` references.

* test(cli): pin the `kit@next` prereleases the experimental cases run against

* test(cli): drop the better-auth `kit@next` case

* chore: fix indentation

* test(cli): let the generated project install a fresh prerelease

* test(cli): track the `next` tag instead of a pinned prerelease

* chore: trim the changesets to one line each

* chore: changeset wording

---------

Co-authored-by: Scott Wu <sw@scottwu.ca>
- resolve `formatFiles`: keep the format-strategy path, adopt main's prettier resolution + error reporting
- keep the `experimental` addon's `kit-3-next` option value over main's `kit`
- drop the `recognize-nub-package-manager` changeset, already released on main
* remove `better-sqlite3` from `allowBuilds`

* changeset

* Update packages/sv/src/addons/drizzle.ts

Co-authored-by: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com>

* changeset

---------

Co-authored-by: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@sacrosanctic

Copy link
Copy Markdown
Contributor

Oh I see, we keep this PR going until we release v1

@jycouet

jycouet commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Acutally, I would like to merge this one :)

@sacrosanctic

Copy link
Copy Markdown
Contributor

then i dont know what im talking about

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.

4 participants