create-stitchkit 0.6.20 → 0.6.22
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/CHANGELOG.md +46 -0
- package/UPGRADING.md +27 -0
- package/package.json +6 -6
- package/template/biome.json +1 -1
- package/template/bun.lock +159 -189
- package/template/ecosystem.config.cjs +12 -2
- package/template/ecosystem.dev.config.cjs +12 -2
- package/template/package.json +8 -8
- package/template/packages/backend/package.json +1 -1
- package/template/packages/backend/src/transport/errors.ts +1 -0
- package/template/packages/config/package.json +1 -1
- package/template/packages/frontend/package.json +8 -8
- package/template/scripts/check-authored.ts +6 -1
- package/template/scripts/declaration.test.ts +31 -0
- package/template/scripts/declaration.ts +14 -1
- package/templates/agent/biome.json +1 -1
- package/templates/agent/package.json +7 -4
- package/templates/telegram-bot/biome.json +1 -1
- package/templates/telegram-bot/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,52 @@ step is overwritten by the next release.
|
|
|
12
12
|
|
|
13
13
|
## [Unreleased]
|
|
14
14
|
|
|
15
|
+
## [0.6.22] - 2026-11-17
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Generated projects resolve stitchkit 0.124.2: a streaming endpoint reads the response of
|
|
20
|
+
another runtime's fetch (`expo/fetch` in React Native). A project that builds or reads named
|
|
21
|
+
MCP media blocks, maps `NOT_FOUND` to a missing route or tool, or reads stdout after
|
|
22
|
+
`CLI_PRESENTATION_FAILED` follows the stitchkit 0.122.0, 0.123.0 and 0.124.0 migrations in
|
|
23
|
+
`docs/guide/upgrading.md`.
|
|
24
|
+
- The generator, the starter and both templates check and format with Biome 2.6.8; the starter
|
|
25
|
+
moves to Playwright 1.65.1, Next.js 16.4.6, TanStack Query 5.108, `next-intl` 4.15,
|
|
26
|
+
`framer-motion` 14.14, Tailwind CSS 4.3.5, `@tabler/icons-react` 3.52, `ai` 7.0.173,
|
|
27
|
+
`dotenv` 18.0.10 and `oxc-parser` 0.159, the agent template to `ai` 7.0.173.
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- A generated agent project installs the `stitchkit-tui` its code is written for: the template
|
|
32
|
+
declared `^0.1.1`, which resolves to 0.1.x only, while its code uses the 0.4 API. It now declares
|
|
33
|
+
`^0.4.4` and the TUI's peers — `@opentui/core` and `@opentui/react` `^0.9.2`, `react` `^19.3.1` —
|
|
34
|
+
as its own dependencies. An agent project generated earlier takes the same four lines into its
|
|
35
|
+
`package.json` and runs `bun install`.
|
|
36
|
+
|
|
37
|
+
- A generated project keeps answering `not_found` for a request no route matches. Stitchkit
|
|
38
|
+
answers such a request `UNKNOWN_OPERATION` where it used to answer `NOT_FOUND`, and the
|
|
39
|
+
starter's error map now spells both as `not_found`; without the entry the framework's own code
|
|
40
|
+
would reach clients. Existing projects adopt it by
|
|
41
|
+
[`UPGRADING.md`](./UPGRADING.md#unknown-operation-keeps-the-not_found-wire-code).
|
|
42
|
+
|
|
43
|
+
## [0.6.21] - 2026-11-09
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
|
|
47
|
+
- Generated projects resolve stitchkit 0.121.0. The agent starter's coding tools bound
|
|
48
|
+
`search_files`, `glob` and `list_directory` work and report its coverage, and `run_command`
|
|
49
|
+
refuses a missing, file or symlink `cwd` in words; a project that reads exact tool outputs or
|
|
50
|
+
builds a complete `AgentCodingToolLimits` value follows the stitchkit 0.121.0 migration.
|
|
51
|
+
|
|
52
|
+
### Fixed
|
|
53
|
+
|
|
54
|
+
- A repeated `bun run dev` applies a changed `.env` to roles that are already running. PM2 keeps
|
|
55
|
+
the CLI environment a role first started with and applies only an app's `env` block on
|
|
56
|
+
`startOrReload --update-env`, so the generated supervision files now pass every variable
|
|
57
|
+
`project.json` declares through each role's `env`; a value injected by the deployment still
|
|
58
|
+
wins over the file, and `NODE_ENV` stays the file's run mode. Existing projects adopt it by the
|
|
59
|
+
[migration](./UPGRADING.md#supervision-passes-declared-environment).
|
|
60
|
+
|
|
15
61
|
## [0.6.20] - 2026-11-05
|
|
16
62
|
|
|
17
63
|
### Changed
|
package/UPGRADING.md
CHANGED
|
@@ -60,6 +60,33 @@ the first scaffolder release with a migration channel of its own.
|
|
|
60
60
|
|
|
61
61
|
---
|
|
62
62
|
|
|
63
|
+
## Released migration: 0.6.22
|
|
64
|
+
|
|
65
|
+
### unknown operation keeps the not_found wire code
|
|
66
|
+
|
|
67
|
+
Take it together with the stitchkit release that answers an unmatched route
|
|
68
|
+
`UNKNOWN_OPERATION`; on an earlier stitchkit the entry is inert.
|
|
69
|
+
|
|
70
|
+
1. In `packages/backend/src/transport/errors.ts`, add `UNKNOWN_OPERATION: 'not_found'` to
|
|
71
|
+
`codeMap`, beside `NOT_FOUND`.
|
|
72
|
+
2. Request a path the backend does not route and check the answer's code is `not_found`.
|
|
73
|
+
|
|
74
|
+
## Released migration: 0.6.21
|
|
75
|
+
|
|
76
|
+
### supervision passes declared environment
|
|
77
|
+
|
|
78
|
+
Additive, and worth taking: without it a changed `.env` stays stale in a running role until
|
|
79
|
+
`pm2 delete`.
|
|
80
|
+
|
|
81
|
+
1. In `scripts/declaration.ts`, after the `config({ path: … })` call that `renderEcosystem`
|
|
82
|
+
emits, emit a `declared` object built from `declaration.env.variables` — each declared name
|
|
83
|
+
with its current value from the process environment, values that are absent left out — and
|
|
84
|
+
render each role's `env` as `{ ...declared, NODE_ENV: '<mode>' }`.
|
|
85
|
+
2. In `scripts/check-authored.ts`, add `ecosystem.config.cjs` and `ecosystem.dev.config.cjs` to
|
|
86
|
+
the environment boundaries: they pass only names the environment schema declares.
|
|
87
|
+
3. Run `bun run gen:declaration`, then `bun run dev`. Check with `pm2 env <role>` that a value
|
|
88
|
+
changed in `.env` arrives without `pm2 delete`.
|
|
89
|
+
|
|
63
90
|
## Released migration: 0.6.1
|
|
64
91
|
|
|
65
92
|
### Canonical query client factory
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-stitchkit",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.22",
|
|
4
4
|
"description": "Create a production-shaped Stitchkit application",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Max Listov <maxlistov@gmail.com>",
|
|
@@ -74,18 +74,18 @@
|
|
|
74
74
|
"prepublishOnly": "bun run check && bun run test && bun run build"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@biomejs/biome": "2.6.
|
|
77
|
+
"@biomejs/biome": "2.6.8",
|
|
78
78
|
"zod": "^4.6.7"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@opentui/core": "^0.8.2",
|
|
82
|
-
"@opentui/react": "^0.8.2",
|
|
83
81
|
"@openrouter/ai-sdk-provider": "^3.1.0",
|
|
82
|
+
"@opentui/core": "^0.9.2",
|
|
83
|
+
"@opentui/react": "^0.9.2",
|
|
84
84
|
"@types/bun": "^1.4.4",
|
|
85
85
|
"@types/react": "^19.3.0",
|
|
86
|
-
"ai": "^7.0.
|
|
86
|
+
"ai": "^7.0.173",
|
|
87
87
|
"react": "^19.3.1",
|
|
88
|
-
"stitchkit": "0.
|
|
88
|
+
"stitchkit": "0.124.2",
|
|
89
89
|
"typescript": "^7.0.2"
|
|
90
90
|
},
|
|
91
91
|
"engines": {
|
package/template/biome.json
CHANGED