dsh-gensokyo 0.0.0-stage โ†’ 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 pgnqukezrdxmhjso
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,396 @@
1
- # Temporary Holding Version
1
+ # dsh-gensokyo
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ ![AI-Crap](https://img.shields.io/badge/๐Ÿ’ฉ-AI_crap_code-5C4033?style=flat-square) [![npm](https://img.shields.io/npm/v/dsh-gensokyo?style=flat-square)](https://www.npmjs.com/package/dsh-gensokyo)
4
+
5
+ [ไธญๆ–‡](./README.zh.md)
6
+
7
+ **Instance**: an independent, isolated DSH runtime; instances never affect one another.
8
+
9
+ An instance may bind any dsh version; the manager handles fetching and compiling, so upgrading dsh is easy.
10
+
11
+ See [design/en/current.md](design/en/current.md) for details.
12
+
13
+ ## Installation
14
+
15
+ Install it globally and run the command:
16
+
17
+ ```sh
18
+ npm install -g dsh-gensokyo
19
+ dsh-gensokyo
20
+ ```
21
+
22
+ Or install it into a project and run it through the package manager:
23
+
24
+ ```sh
25
+ npm install dsh-gensokyo
26
+ npx dsh-gensokyo
27
+ ```
28
+
29
+ It also runs straight from the repository: clone it into any directory, install dependencies in that directory, and use `pnpm gensokyo`.
30
+
31
+ ```sh
32
+ pnpm install
33
+ pnpm gensokyo
34
+ ```
35
+
36
+ It works from wherever you put it; `pnpm install` installs only this directory's dependencies.
37
+
38
+ ## Usage
39
+
40
+ On the first run, two things happen in the menu:
41
+
42
+ 1. **Install a version.** Open "Version management", pick one from the upstream tag list, and clone it into `versions/` with a build. Clone and build output share one log view you can scroll while it runs.
43
+ 2. **Launch it.** Back on the main menu, pressing Enter launches it.
44
+
45
+ With no instance at all, a successful clone and build creates the instance `dsh` automatically, and that instance becomes the default target of `-r` and is pinned to the main menu.
46
+
47
+ In daily use there is usually only one command:
48
+
49
+ ```sh
50
+ dsh-gensokyo -r
51
+ ```
52
+
53
+ It skips the menu and launches the default instance's default profile.
54
+
55
+ The directory the command runs from decides where the managed data lives: it walks up from there to the first directory containing `versions/`, which becomes this tool's root. If nothing on the way up has one, the current directory becomes the root and a new tree is created there. Use `--root` when the automatic result is not what you want.
56
+
57
+ ### Command-line options
58
+
59
+ | Option | Description | Type | Required |
60
+ | --- | --- | --- | --- |
61
+ | -r | Skip the menu and launch an instance's default profile | boolean | no |
62
+ | -t | Name of the instance to launch; defaults to the default instance | string | no |
63
+ | --root | Root to use instead of the detected one | string | no |
64
+ | --cwd | Working directory for the launched dsh | string | no |
65
+ | -- | Separator: everything after it is forwarded to dsh verbatim | โ€” | no |
66
+
67
+ `-t` names a target rather than belonging to `-r`; today only `-r` consumes it, so using `-t` on its own is an error instead of being silently ignored. Anything between the options and `--` that is not recognised is also an error.
68
+
69
+ What follows `--` **replaces** the arguments stored for that instance's default profile entirely, rather than being appended to them.
70
+
71
+ ### Examples
72
+
73
+ Enter the menu:
74
+
75
+ ```sh
76
+ dsh-gensokyo
77
+ ```
78
+
79
+ Launch the default instance's default profile:
80
+
81
+ ```sh
82
+ dsh-gensokyo -r
83
+ ```
84
+
85
+ Launch a specific instance:
86
+
87
+ ```sh
88
+ dsh-gensokyo -r -t dsh
89
+ ```
90
+
91
+ Launch a profile this tool does not start itself:
92
+
93
+ ```sh
94
+ dsh-gensokyo -r -t dsh -- --profile headless "run the tests"
95
+ ```
96
+
97
+ Run the launched dsh in another directory โ€” useful for `headless`, whose workspace is the directory it is started in:
98
+
99
+ ```sh
100
+ dsh-gensokyo -r -t dsh --cwd D:\my-project -- --profile headless "run the tests"
101
+ ```
102
+
103
+ Manage a different tree:
104
+
105
+ ```sh
106
+ dsh-gensokyo --root D:\dsh
107
+ ```
108
+
109
+ Replace the default profile's stored arguments:
110
+
111
+ ```sh
112
+ dsh-gensokyo -r -t dsh -- --port 3000
113
+ ```
114
+
115
+ Arguments after `--` are passed through untouched, so `-r`, `-t`, `--root` and `--cwd` appearing there belong to dsh, not to this tool.
116
+
117
+ ## Features
118
+
119
+ ### Main menu
120
+
121
+ ~~~
122
+ ? ไธป่œๅ•๏ผš๏ผˆD:\data\code\deepseek-harness๏ผ›ๅ‘็Žฐๆ–ฐ็‰ˆๆœฌ๏ผšv0.2.1-rc.2 -> v0.2.2-rc.5๏ผ‰
123
+ โ”€โ”€ ๅฎžไพ‹ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
124
+ asd(v0.2.1-rc.2)
125
+ โฏ 1. web
126
+ dsh(v0.2.1-rc.2)
127
+ 2. ๆกŒ้ข็‰ˆ
128
+ 3. web
129
+ 4. test
130
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
131
+ 5. ๅฎžไพ‹็ฎก็†
132
+ 6. ็‰ˆๆœฌ็ฎก็†
133
+ 7. ็”ŸๆˆๅฏๅŠจ่„šๆœฌ
134
+ 8. ่ทŸ้š็ณป็ปŸไปฃ็†๏ผˆhttp://127.0.0.1:8889๏ผ‰
135
+ 9. GitHub ไปฃ็†๏ผˆhttps://gh-proxy.org/๏ผ‰
136
+ 10. Electron ้•œๅƒ๏ผˆhttps://npmmirror.com/mirrors/electron/๏ผ‰
137
+ 11. Q ้€€ๅ‡บ
138
+
139
+ ~~~
140
+
141
+ The parentheses hold the current root directory, and the update notice.
142
+
143
+ > The manager fetches the latest dsh version on startup and reports it when one is newer.
144
+
145
+ Each instance group lists the launchable profiles of a pinned instance; selecting one launches dsh directly.
146
+
147
+ ### Instance management
148
+
149
+ ```
150
+ โฏ 1. ๅˆ›ๅปบ
151
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
152
+ 2. dsh๏ผˆv0.2.1-rc.2 ยท ้ป˜่ฎค ยท ๅทฒๅ›บๅฎš๏ผ‰
153
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
154
+ 3. Q ่ฟ”ๅ›ž
155
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
156
+ ```
157
+
158
+ #### Create
159
+
160
+ Creates an independent, isolated dsh runtime.
161
+
162
+ Flow: instance name โ†’ dsh version โ†’ data source
163
+
164
+ Only locally built dsh versions can be chosen.
165
+
166
+ Data sources: new, another instance's data, or the machine's global data (dsh's default path `~/.dsh`).
167
+
168
+ The instance directory is created as `ๅทฅไฝœๆ น/instances/<name>/`.
169
+
170
+ #### Inside an instance
171
+
172
+ ~~~
173
+ ? dsh๏ผˆv0.2.1-rc.2๏ผ‰
174
+ โ”€โ”€ profile โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
175
+ 1. ๅˆ›ๅปบ
176
+ 2. ๆกŒ้ข็‰ˆ
177
+ 3. web๏ผˆ้ป˜่ฎค๏ผ‰
178
+ 4. test
179
+ โ”€โ”€ ๅฎžไพ‹ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
180
+ โฏ 5. ๅ–ๆถˆๅ›บๅฎš > ๅ›บๅฎšๅˆฐไธป่œๅ•
181
+ 6. ๅ–ๆถˆ้ป˜่ฎค > -r ๅฏๅŠจ็ฎก็†ๅ™จๆ—ถ็š„้ป˜่ฎคๅฎžไพ‹
182
+ 7. ไฟฎๆ”น dsh ็‰ˆๆœฌ
183
+ 8. ไฟฎๆ”นๅ็งฐ
184
+ 9. ๅˆ ้™ค
185
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
186
+ 10. Q ่ฟ”ๅ›ž
187
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
188
+ ~~~
189
+
190
+ ##### profile
191
+
192
+ A profile is what dsh actually starts, living at `$DSH_HOME/profiles/<name>/`. The manager launches the profiles inside an instance.
193
+
194
+ ###### Create
195
+
196
+ Creates a web-type profile.
197
+
198
+ ###### Inside a profile
199
+
200
+ ```
201
+ โฏ 1. ๅฏๅŠจ
202
+ 2. ่ฎพไธบ้ป˜่ฎคๅฏๅŠจ > -r ๅฏๅŠจ็ฎก็†ๅ™จๆ—ถ็š„้ป˜่ฎค profile ๏ผŒๅชๆœ‰ๅฎžไพ‹ไธบ้ป˜่ฎคๆ—ถๆ‰ๆ˜พ็คบ
203
+ 3. ๆ’ไปถ็ฎก็† > ็ฎก็† profile ็š„ๆ’ไปถ
204
+ 4. ไฟฎๆ”นๅฏๅŠจๅ‚ๆ•ฐ > ๅฏๅŠจ profile ๆ—ถ็š„้ป˜่ฎคๅ‚ๆ•ฐ
205
+ 5. ไฟฎๆ”นๅ็งฐ
206
+ 6. ๅˆ ้™ค
207
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
208
+ 7. Q ่ฟ”ๅ›ž
209
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
210
+ ```
211
+
212
+ ###### Desktop app
213
+
214
+ ```
215
+ ? dsh-ๆกŒ้ข็‰ˆ
216
+ โฏ 1. ๅฏๅŠจ
217
+ 2. ่ฎพไธบ้ป˜่ฎคๅฏๅŠจ
218
+ 3. ๆ’ไปถ็ฎก็†
219
+ 4. ็ฆ็”จ > ็ฆ็”จๆกŒ้ข็‰ˆ
220
+ 5. ๅˆ ้™คๆ•ฐๆฎ > ๅˆ ้™คๆกŒ้ข็‰ˆ็š„ profile ๆ•ฐๆฎไธŽ Electron ๆ•ฐๆฎ
221
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
222
+ 6. Q ่ฟ”ๅ›ž
223
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
224
+ ```
225
+
226
+ ###### web
227
+
228
+ The default profile; it cannot be renamed or removed.
229
+
230
+ The port to launch on is the first free one found from 3080 (the default), or from the one configured in the launch arguments when present (which takes precedence).
231
+
232
+ ##### Instance
233
+
234
+ ###### Change dsh version
235
+
236
+ ```
237
+ ? ้€‰ๆ‹ฉ dsh ็‰ˆๆœฌ
238
+ โฏ 1. tag ๅˆ—่กจ > ่ฟœ็จ‹ tag ๅˆ—่กจ๏ผŒ้€‰ๆ‹ฉๆœฌๅœฐไธๅญ˜ๅœจ็š„็‰ˆๆœฌๅฐ†่ตฐๆž„ๅปบๆต็จ‹
239
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
240
+ 2. v0.2.1-rc.2๏ผˆๆกŒ้ข็‰ˆๆœชๆž„ๅปบ๏ผ‰ > ๆœฌๅœฐ็‰ˆๆœฌๅˆ—่กจ
241
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
242
+ 3. Q ่ฟ”ๅ›ž
243
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
244
+ ```
245
+
246
+ ### Version management
247
+
248
+ ```
249
+ ? ็‰ˆๆœฌ็ฎก็†
250
+ โฏ 1. tag ๅˆ—่กจ > ่ฟœ็จ‹ tag ๅˆ—่กจ
251
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
252
+ 2. v0.2.1-rc.2๏ผˆๆกŒ้ข็‰ˆๆœชๆž„ๅปบ๏ผ‰ > ๆœฌๅœฐ็‰ˆๆœฌๅˆ—่กจ
253
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
254
+ 3. Q ่ฟ”ๅ›ž
255
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
256
+ ```
257
+
258
+ #### Tag list
259
+ ##### Inside a tag
260
+
261
+ ```
262
+ ? v0.2.2-rc.5
263
+ โฏ 1. ๅ…‹้š†ๅˆฐๆœฌๅœฐ > ๅฏ้€‰ๆž„ๅปบ๏ผŒๅœจๆฒกๆœ‰ไปปไฝ•ๅฎžไพ‹ๅนถไธ”ๆž„ๅปบๆˆๅŠŸๅŽๅฐ†ๅˆ›ๅปบ้ป˜่ฎคๅฎžไพ‹
264
+ 2. ๆŸฅ็œ‹ release ่ฏดๆ˜Ž
265
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
266
+ 3. Q ่ฟ”ๅ›ž
267
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
268
+ ```
269
+
270
+ #### Local version list
271
+ ##### Inside a local version
272
+
273
+ ```
274
+ ? v0.2.1-rc.2
275
+ โฏ 1. ้‡ๆ–ฐๆž„ๅปบ
276
+ 2. ๆž„ๅปบๆกŒ้ข็‰ˆ
277
+ 3. ๅˆ ้™ค
278
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
279
+ 4. Q ่ฟ”ๅ›ž
280
+ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
281
+ ```
282
+
283
+ ### Generate launcher
284
+
285
+ For running the default instance quickly. Generates `dsh-gensokyo.sh` or `dsh-gensokyo.cmd` plus `dsh-gensokyo.exe` in the manager's working directory.
286
+
287
+ ### Menu keys
288
+
289
+ Every list in the menu (confirmation boxes included) uses the same keys:
290
+
291
+ | Key | Action |
292
+ | --- | --- |
293
+ | โ†‘ | previous item |
294
+ | โ†“ | next item |
295
+ | โ† / PageUp | previous page, wrapping to the end at the top |
296
+ | โ†’ / PageDown | next page, wrapping to the start at the bottom |
297
+ | Enter | select the highlighted item |
298
+ | a letter | jump to the first item starting with it |
299
+ | Ctrl+H | back to the main menu |
300
+ | Ctrl+C | pressed twice anywhere to exit the script |
301
+
302
+ ### Log view keys
303
+
304
+ Running a subprocess opens the log view, whose keys are:
305
+
306
+ | Key | While the subprocess runs | After it ends |
307
+ | --- | --- | --- |
308
+ | space / โ†“ / PgDn / J | next page | next page |
309
+ | B / โ†‘ / PgUp / K | previous page | previous page |
310
+ | Home | jump to the start | jump to the start |
311
+ | End | jump to the end and resume following | jump to the end |
312
+ | q / Esc | no effect | leave the log view and return to the menu |
313
+ | Ctrl+C | abort the subprocess and the processes it started | exit the whole script |
314
+
315
+ The log follows the newest output by default. Scrolling up with B / โ†‘ / Home pauses following, and End returns to the end and resumes it. At most 5000 lines are kept, dropping the oldest first.
316
+
317
+ The bottom line states the current condition: `่ฟ่กŒไธญ`, `ๅทฒๅฎŒๆˆ`, `ๅ‡บ้”™` or `ๅทฒไธญๆญข`.
318
+
319
+ Reading a release and viewing a log use the same keys and the same wording.
320
+
321
+ ### GitHub request limits
322
+
323
+ Fetching tags and release notes uses the GitHub API.
324
+
325
+ 60/h (not signed in), 5000/h (signed in).
326
+
327
+ The manager reads the machine's signed-in git account automatically.
328
+
329
+ ## Secondary development
330
+
331
+ Clone this repository and install dependencies in this directory:
332
+
333
+ ```sh
334
+ pnpm install
335
+ ```
336
+
337
+ Run the sources without building:
338
+
339
+ ```sh
340
+ pnpm gensokyo
341
+ ```
342
+
343
+ Type-check without emitting anything:
344
+
345
+ ```sh
346
+ pnpm typecheck
347
+ ```
348
+
349
+ Build the JavaScript that gets published:
350
+
351
+ ```sh
352
+ pnpm build
353
+ ```
354
+
355
+ Change behaviour by editing the files under `src/`. The build type-checks first and then bundles everything into the single file `dist/main.mjs`, which is what gets published; a type error fails the build before anything is written.
356
+
357
+ ### Gate checks
358
+
359
+ `pnpm verify` needs `dsh-pgnqukezrdxmhjso-base` in addition to this repository โ€” a separate repository providing the gate runner. The script calls it by relative path, so clone it next to this repository:
360
+
361
+ ```
362
+ any directory/
363
+ dsh-gensokyo/ this repository
364
+ dsh-pgnqukezrdxmhjso-base/ the gate dependency
365
+ ```
366
+
367
+ They only need to sit side by side; the parent directory can be named anything. Without it only `pnpm verify` is unavailable โ€” `pnpm gensokyo`, `pnpm build` and `pnpm typecheck` are unaffected, and using the tool never needs it.
368
+
369
+ ### Changing the launcher exe
370
+
371
+ On Windows, "Generate launcher" also writes a `dsh-gensokyo.exe` whose source is `c/launcher.c`; the compiled exe sits in that same directory, and generation copies it verbatim rather than keeping a second copy. After changing the C source, rebuild:
372
+
373
+ ```sh
374
+ pnpm build:exe
375
+ ```
376
+
377
+ That compiles `c/dsh-gensokyo.exe`. It needs Visual Studio or Build Tools with "Desktop development with C++" installed; without it the command fails and leaves the existing artifact untouched. Ordinary use and `pnpm build` never need it.
378
+
379
+ The exe takes its icon from `c/ico.ico`, declared by `c/launcher.rc`. Change the icon by replacing that file and rerunning the command above; deleting the ico temporarily also compiles, yielding an exe with no custom icon at about 4 KB.
380
+
381
+ The sizes inside the icon determine how sharp each view looks. Windows' four views request `16`, `32`, `48` and `256` respectively and take the smallest entry no smaller than the request, so an ico should carry all four; whichever is missing makes that view downscale a larger one. The current ico has exactly these four.
382
+
383
+ ### Packaging and publishing
384
+
385
+ ```sh
386
+ pnpm run pack # build, then leave a tarball in dist/
387
+ pnpm run pub # build, log in, then publish
388
+ ```
389
+
390
+ Both start with the build, so the tarball always carries freshly built output. Use `pnpm run pack`, not `pnpm pack`: the latter is pnpm's own packaging command and ignores the script of the same name, producing a tarball with no `dist/` in it.
391
+
392
+ A bare `npm publish` or `pnpm publish` does not build first, so run one of the two scripts above instead of publishing directly.
393
+
394
+ ---
395
+
396
+ No runtime invariant companion is published because this repository is a development-time tool with no runtime registration and no independent runtime relation to check.