create-stitchkit 0.6.22 → 0.6.23

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 CHANGED
@@ -12,6 +12,21 @@ step is overwritten by the next release.
12
12
 
13
13
  ## [Unreleased]
14
14
 
15
+ ## [0.6.23] - 2026-11-21
16
+
17
+ ### Changed
18
+
19
+ - Generated projects resolve stitchkit 0.126.0. The backend's watch hub reads with
20
+ `read({ operation })`: `createWatchHub` now passes one request carrying an `AbortSignal` that
21
+ aborts when the last watcher leaves. An existing project adopts it by
22
+ [`UPGRADING.md`](./UPGRADING.md#watch-hub-reads-one-request) and the stitchkit 0.126.0
23
+ migration `watch-read-request` in `docs/guide/upgrading.md`, and from 0.125.0 the migration
24
+ `cli-framework-option-command-names`: a CLI command named like a framework option (`--quiet`)
25
+ is refused, and a leading framework flag before a native command in a CLI with a managed
26
+ factory and no default command must move after it.
27
+ - The generator, the starter and both templates run on Bun 1.4.5; the agent template moves to
28
+ `ai` 7.0.179 and OpenTUI 0.9.7, the telegram-bot template to `@types/bun` 1.4.5.
29
+
15
30
  ## [0.6.22] - 2026-11-17
16
31
 
17
32
  ### Changed
package/UPGRADING.md CHANGED
@@ -60,6 +60,19 @@ the first scaffolder release with a migration channel of its own.
60
60
 
61
61
  ---
62
62
 
63
+ ## Released migration: 0.6.23
64
+
65
+ ### watch hub reads one request
66
+
67
+ Take it together with stitchkit 0.126.0, whose `createWatchHub` passes `read` one
68
+ `{ operation, args, scope, signal }` request; on 0.125.0 and earlier the entry does not compile.
69
+
70
+ 1. In `packages/backend/src/lib/live.ts`, change `read: async (operation) =>` to
71
+ `read: async ({ operation }) =>`. A read of your own that calls the network or a slow query
72
+ takes `signal` from the same request and passes it on.
73
+ 2. Run `bun run check`, then open the board in two tabs, post a note in one and check it appears
74
+ in the other.
75
+
63
76
  ## Released migration: 0.6.22
64
77
 
65
78
  ### unknown operation keeps the not_found wire code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-stitchkit",
3
- "version": "0.6.22",
3
+ "version": "0.6.23",
4
4
  "description": "Create a production-shaped Stitchkit application",
5
5
  "license": "MIT",
6
6
  "author": "Max Listov <maxlistov@gmail.com>",
@@ -79,17 +79,17 @@
79
79
  },
80
80
  "devDependencies": {
81
81
  "@openrouter/ai-sdk-provider": "^3.1.0",
82
- "@opentui/core": "^0.9.2",
83
- "@opentui/react": "^0.9.2",
84
- "@types/bun": "^1.4.4",
82
+ "@opentui/core": "^0.9.7",
83
+ "@opentui/react": "^0.9.7",
84
+ "@types/bun": "^1.4.5",
85
85
  "@types/react": "^19.3.0",
86
- "ai": "^7.0.173",
86
+ "ai": "^7.0.179",
87
87
  "react": "^19.3.1",
88
- "stitchkit": "0.124.2",
88
+ "stitchkit": "0.126.0",
89
89
  "typescript": "^7.0.2"
90
90
  },
91
91
  "engines": {
92
92
  "bun": ">=1.2.0"
93
93
  },
94
- "packageManager": "bun@1.4.4"
94
+ "packageManager": "bun@1.4.5"
95
95
  }
package/template/bun.lock CHANGED
@@ -14,7 +14,7 @@
14
14
  "@biomejs/biome": "2.6.8",
15
15
  "@modelcontextprotocol/client": "^2.4.0",
16
16
  "@playwright/test": "^1.65.1",
17
- "@types/bun": "^1.4.4",
17
+ "@types/bun": "^1.4.5",
18
18
  "@types/node": "^26.6.6",
19
19
  "oxc-parser": "^0.159.0",
20
20
  "socket.io-client": "^4.8.4",
@@ -39,7 +39,7 @@
39
39
  "zod": "^4.6.7",
40
40
  },
41
41
  "devDependencies": {
42
- "@types/bun": "^1.4.4",
42
+ "@types/bun": "^1.4.5",
43
43
  "typescript": "^7.0.2",
44
44
  },
45
45
  },
@@ -53,7 +53,7 @@
53
53
  "zod": "^4.6.7",
54
54
  },
55
55
  "devDependencies": {
56
- "@types/bun": "^1.4.4",
56
+ "@types/bun": "^1.4.5",
57
57
  "typescript": "^7.0.2",
58
58
  },
59
59
  },
@@ -115,7 +115,7 @@
115
115
  },
116
116
  "devDependencies": {
117
117
  "@tailwindcss/postcss": "^4.3.5",
118
- "@types/bun": "^1.4.4",
118
+ "@types/bun": "^1.4.5",
119
119
  "@types/node": "^26.6.6",
120
120
  "@types/react": "^19.3.0",
121
121
  "@types/react-dom": "^19.3.0",
@@ -133,7 +133,7 @@
133
133
  "zod": "^4.6.7",
134
134
  },
135
135
  "devDependencies": {
136
- "@types/bun": "^1.4.4",
136
+ "@types/bun": "^1.4.5",
137
137
  "typescript": "^7.0.2",
138
138
  },
139
139
  },
@@ -145,7 +145,7 @@
145
145
  "zod": "4.6.7",
146
146
  },
147
147
  "catalog": {
148
- "stitchkit": "^0.124.2",
148
+ "stitchkit": "^0.126.0",
149
149
  },
150
150
  "packages": {
151
151
  "@ai-sdk/gateway": ["@ai-sdk/gateway@4.0.146", "", { "dependencies": { "@ai-sdk/provider": "4.0.38", "@ai-sdk/provider-utils": "5.0.81", "@vercel/oidc": "3.2.0" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-rJ5NQSyjnpo6HSBEYc9Ff6k1EROUuB7KeAfHYVbVDsk68ynY0Eb8JeWflZKXlT6NhYgqyCiBDxE5blXWACXMKQ=="],
@@ -596,7 +596,7 @@
596
596
 
597
597
  "@tanstack/table-core": ["@tanstack/table-core@9.3.1", "", { "dependencies": { "@tanstack/store": "^0.11.2" } }, "sha512-zQvlxSNi2qGM3L4jh85Z6hqMfdIR5qOfD9KHOU32nuKFJGN0RlJ7UvV1lsPb1fPVhpFYI0VP3jJGxLdLDpTKjQ=="],
598
598
 
599
- "@types/bun": ["@types/bun@1.4.4", "", { "dependencies": { "bun-types": "1.4.4" } }, "sha512-9wkRDXUXK124pEnAutE6n/l18j+i9GC5IAHK8TmX/2nlySETmky0OU6yL5U8pW1AoKh++AN9auDCr647BfurjQ=="],
599
+ "@types/bun": ["@types/bun@1.4.5", "", { "dependencies": { "bun-types": "1.4.5" } }, "sha512-DpgwNI9z0L1S0gtb45QLCWgwCUcMLnsHYMJHQvpNj7erGiCGBvpggltAIeARrtobNMKMuy0UP7i56tKKgwFs/Q=="],
600
600
 
601
601
  "@types/cors": ["@types/cors@2.8.19", "", { "dependencies": { "@types/node": "*" } }, "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg=="],
602
602
 
@@ -732,7 +732,7 @@
732
732
 
733
733
  "better-result": ["better-result@2.10.0", "", {}, "sha512-oQhh0y1qo2/ZKdAAEvHZAqKKiHOFU5k/bW96fE2ScgQOVkJRiHwB+nOS1SgFsYqRlxMDWvefXi9Q3px7QvgNDw=="],
734
734
 
735
- "bun-types": ["bun-types@1.4.4", "", { "dependencies": { "@types/node": "*", "undici-types": "*" } }, "sha512-yjrJh5oGX7mMPKGd19YXyIjmEuj4G4zNC30bs7PM9Az7NQ3ndF3j6hbeRdvJTRQEhJ/FYQwW0a2moweEi2hMxQ=="],
735
+ "bun-types": ["bun-types@1.4.5", "", { "dependencies": { "@types/node": "*", "undici-types": "*" } }, "sha512-ECHn+9dhL3wv0G6u0+7dQvrnaimXiRDxxerYBmhTaLyJEEuvTPWk2Fye3XIf5Y++JIIiHKfQw4Z7V5D8KuiXbg=="],
736
736
 
737
737
  "c12": ["c12@3.3.4", "", { "dependencies": { "chokidar": "^5.0.0", "confbox": "^0.2.4", "defu": "^6.1.6", "dotenv": "^17.3.1", "exsolve": "^1.0.8", "giget": "^3.2.0", "jiti": "^2.6.1", "ohash": "^2.0.11", "pathe": "^2.0.3", "perfect-debounce": "^2.1.0", "pkg-types": "^2.3.0", "rc9": "^3.0.1" }, "peerDependencies": { "magicast": "*" }, "optionalPeers": ["magicast"] }, "sha512-cM0ApFQSBXuourJejzwv/AuPRvAxordTyParRVcHjjtXirtkzM0uK2L9TTn9s0cXZbG7E55jCivRQzoxYmRAlA=="],
738
738
 
@@ -1126,7 +1126,7 @@
1126
1126
 
1127
1127
  "std-env": ["std-env@3.10.0", "", {}, "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg=="],
1128
1128
 
1129
- "stitchkit": ["stitchkit@0.124.2", "", { "dependencies": { "ky": "^2.2.0" }, "peerDependencies": { "@modelcontextprotocol/ext-apps": "^1.7.2 || ^2.0.0", "@modelcontextprotocol/server": "^2.0.0", "@openrouter/ai-sdk-provider": "^3.1.0", "@opentelemetry/api": "^1.9.0", "@socket.io/bun-engine": "^0.1.2", "@socket.io/component-emitter": "^3.1.2", "@tanstack/react-query": ">=5", "@types/bun": "^1.4.2", "ai": "^7.0.107", "google-auth-library": "^11.1.0", "grammy": "^1.46.0", "maxmind": "^5.0.7", "react": ">=18", "react-query-kit": "^3.3.3", "socket.io": "^4.8.3", "socket.io-client": "^4.8.3", "srvx": "^0.12.5 || ^1.0.5", "web-vitals": "^6.2.3", "zod": "^4.6.5" }, "optionalPeers": ["@modelcontextprotocol/ext-apps", "@modelcontextprotocol/server", "@openrouter/ai-sdk-provider", "@opentelemetry/api", "@socket.io/bun-engine", "@socket.io/component-emitter", "@tanstack/react-query", "@types/bun", "ai", "google-auth-library", "grammy", "maxmind", "react", "react-query-kit", "socket.io", "socket.io-client", "srvx", "web-vitals"], "bin": { "stitchkit": "dist/entrypoints/bin/upgrade-cli.js" } }, "sha512-U8iXUsovUCUuOLF9klRSV81JfIMRL2KdTJeVRoCKpqxKBaBh5JsdBzVQ49om6OGZc4L7n4vM88129WFPFfqh/Q=="],
1129
+ "stitchkit": ["stitchkit@0.126.0", "", { "dependencies": { "ky": "^2.2.0" }, "peerDependencies": { "@modelcontextprotocol/ext-apps": "^1.7.2 || ^2.0.0", "@modelcontextprotocol/server": "^2.0.0", "@openrouter/ai-sdk-provider": "^3.1.0", "@opentelemetry/api": "^1.9.0", "@socket.io/bun-engine": "^0.1.2", "@socket.io/component-emitter": "^3.1.2", "@tanstack/react-query": ">=5", "@types/bun": "^1.4.2", "ai": "^7.0.107", "google-auth-library": "^11.1.0", "grammy": "^1.46.0", "maxmind": "^5.0.7", "react": ">=18", "react-query-kit": "^3.3.3", "socket.io": "^4.8.3", "socket.io-client": "^4.8.3", "srvx": "^0.12.5 || ^1.0.5", "web-vitals": "^6.2.3", "zod": "^4.6.5" }, "optionalPeers": ["@modelcontextprotocol/ext-apps", "@modelcontextprotocol/server", "@openrouter/ai-sdk-provider", "@opentelemetry/api", "@socket.io/bun-engine", "@socket.io/component-emitter", "@tanstack/react-query", "@types/bun", "ai", "google-auth-library", "grammy", "maxmind", "react", "react-query-kit", "socket.io", "socket.io-client", "srvx", "web-vitals"], "bin": { "stitchkit": "dist/entrypoints/bin/upgrade-cli.js" } }, "sha512-WbZQcLzDlyqwnol1OZs4kqLUs153nRiOIrYaAsE5WsYcbGyY5X1YS6E1pOhnmFvybG6qzIgxWVexcxh0HrSS2A=="],
1130
1130
 
1131
1131
  "stringify-entities": ["stringify-entities@4.0.4", "", { "dependencies": { "character-entities-html4": "^2.0.0", "character-entities-legacy": "^3.0.0" } }, "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg=="],
1132
1132
 
@@ -7,7 +7,7 @@
7
7
  "packages/*"
8
8
  ],
9
9
  "catalog": {
10
- "stitchkit": "^0.124.2"
10
+ "stitchkit": "^0.126.0"
11
11
  },
12
12
  "overrides": {
13
13
  "@playwright/test": "1.65.1",
@@ -53,7 +53,7 @@
53
53
  "@biomejs/biome": "2.6.8",
54
54
  "@modelcontextprotocol/client": "^2.4.0",
55
55
  "@playwright/test": "^1.65.1",
56
- "@types/bun": "^1.4.4",
56
+ "@types/bun": "^1.4.5",
57
57
  "@types/node": "^26.6.6",
58
58
  "oxc-parser": "^0.159.0",
59
59
  "socket.io-client": "^4.8.4",
@@ -65,5 +65,5 @@
65
65
  "bun": ">=1.2.0",
66
66
  "node": ">=22"
67
67
  },
68
- "packageManager": "bun@1.4.4"
68
+ "packageManager": "bun@1.4.5"
69
69
  }
@@ -25,7 +25,7 @@
25
25
  "zod": "^4.6.7"
26
26
  },
27
27
  "devDependencies": {
28
- "@types/bun": "^1.4.4",
28
+ "@types/bun": "^1.4.5",
29
29
  "typescript": "^7.0.2"
30
30
  }
31
31
  }
@@ -25,7 +25,9 @@ export function bindLive(board: BoardRuntime, handle: RealtimeServerHandle): Liv
25
25
  const hub = createWatchHub({
26
26
  // The hub does not dispatch; it asks the application. One reader for the
27
27
  // watched answer and the plain `GET` alike, so the two cannot disagree.
28
- read: async (operation) => {
28
+ // The request also carries a `signal` that aborts when the last watcher
29
+ // leaves; a read that calls the network or a slow query passes it on.
30
+ read: async ({ operation }) => {
29
31
  if (operation.action !== 'list') {
30
32
  throw new Error(`${operation.service}.${operation.action} is not readable here`);
31
33
  }
@@ -21,7 +21,7 @@
21
21
  "zod": "^4.6.7"
22
22
  },
23
23
  "devDependencies": {
24
- "@types/bun": "^1.4.4",
24
+ "@types/bun": "^1.4.5",
25
25
  "typescript": "^7.0.2"
26
26
  }
27
27
  }
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@tailwindcss/postcss": "^4.3.5",
53
- "@types/bun": "^1.4.4",
53
+ "@types/bun": "^1.4.5",
54
54
  "@types/node": "^26.6.6",
55
55
  "@types/react": "^19.3.0",
56
56
  "@types/react-dom": "^19.3.0",
@@ -16,7 +16,7 @@
16
16
  "zod": "^4.6.7"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/bun": "^1.4.4",
19
+ "@types/bun": "^1.4.5",
20
20
  "typescript": "^7.0.2"
21
21
  }
22
22
  }
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@modelcontextprotocol/server": "^2.4.0",
23
23
  "@openrouter/ai-sdk-provider": "^3.1.0",
24
- "@opentui/core": "^0.9.2",
25
- "@opentui/react": "^0.9.2",
26
- "ai": "^7.0.173",
24
+ "@opentui/core": "^0.9.7",
25
+ "@opentui/react": "^0.9.7",
26
+ "ai": "^7.0.179",
27
27
  "react": "^19.3.1",
28
28
  "stitchkit": "link:../../../core",
29
29
  "stitchkit-tui": "link:../../../tui",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@biomejs/biome": "2.6.8",
34
- "@types/bun": "^1.4.4",
34
+ "@types/bun": "^1.4.5",
35
35
  "@types/react": "^19.3.0",
36
36
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
37
37
  "typescript": "^7.0.2"
@@ -39,5 +39,5 @@
39
39
  "engines": {
40
40
  "bun": ">=1.3.0"
41
41
  },
42
- "packageManager": "bun@1.4.4"
42
+ "packageManager": "bun@1.4.5"
43
43
  }
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@biomejs/biome": "2.6.8",
26
- "@types/bun": "^1.4.4",
26
+ "@types/bun": "^1.4.5",
27
27
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
28
28
  "typescript": "^7.0.2"
29
29
  },
30
30
  "engines": {
31
31
  "bun": ">=1.3.0"
32
32
  },
33
- "packageManager": "bun@1.4.4"
33
+ "packageManager": "bun@1.4.5"
34
34
  }