@shibanet0/datamitsu-config 0.0.1-alpha-1

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/datamitsu.js ADDED
@@ -0,0 +1,1671 @@
1
+ // @ts-nocheck
2
+ // prettier-ignore
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ // src/datamitsu-config/appState.json
7
+ var appState_default = {
8
+ lefthook: {
9
+ type: "github",
10
+ tag: "v2.0.11",
11
+ binaries: {
12
+ darwin: {
13
+ amd64: {
14
+ url: "https://github.com/evilmartians/lefthook/releases/download/v2.0.11/lefthook_2.0.11_MacOS_x86_64.gz",
15
+ hash: "62991a2d8f30b145c58e1142b55b6737502d98064a05507a41b51e0ba2dd1b65",
16
+ contentType: "gz"
17
+ },
18
+ arm64: {
19
+ url: "https://github.com/evilmartians/lefthook/releases/download/v2.0.11/lefthook_2.0.11_MacOS_arm64.gz",
20
+ hash: "d1cb520a846d7ae7ebc2d680ade137272934e168244df6f9dea101b7c0c38477",
21
+ contentType: "gz"
22
+ }
23
+ },
24
+ freebsd: {
25
+ amd64: {
26
+ url: "https://github.com/evilmartians/lefthook/releases/download/v2.0.11/lefthook_2.0.11_Freebsd_x86_64.gz",
27
+ hash: "047118ec2d46acbf89c48635db8fafd6433e6e04f76cf2f19467caab7f880d8f",
28
+ contentType: "gz"
29
+ },
30
+ arm64: {
31
+ url: "https://github.com/evilmartians/lefthook/releases/download/v2.0.11/lefthook_2.0.11_Freebsd_arm64.gz",
32
+ hash: "e62b06b954a144f0d7f4c697c2265d5f7b48741e3e6c716a87b23269e3f6f75d",
33
+ contentType: "gz"
34
+ }
35
+ },
36
+ linux: {
37
+ aarch64: {
38
+ url: "https://github.com/evilmartians/lefthook/releases/download/v2.0.11/lefthook_2.0.11_Linux_aarch64.gz",
39
+ hash: "d17b46dda220e4f2e42c5028adfde05c0f94268e077a2e8e256c635c10f7eb23",
40
+ contentType: "gz"
41
+ },
42
+ amd64: {
43
+ url: "https://github.com/evilmartians/lefthook/releases/download/v2.0.11/lefthook_2.0.11_Linux_x86_64.gz",
44
+ hash: "868ada33133b924926f162e603b10bf526c662f8504d7b477a5e09b97b29463d",
45
+ contentType: "gz"
46
+ },
47
+ arm64: {
48
+ url: "https://github.com/evilmartians/lefthook/releases/download/v2.0.11/lefthook_2.0.11_Linux_arm64.gz",
49
+ hash: "7d64803bb0f63eb5c75f1ff762b21488bb18d97de29dbd4ea68f8d5485181fa6",
50
+ contentType: "gz"
51
+ }
52
+ },
53
+ windows: {
54
+ amd64: {
55
+ url: "https://github.com/evilmartians/lefthook/releases/download/v2.0.11/lefthook_2.0.11_Windows_x86_64.gz",
56
+ hash: "a42b3ab94f6bd7dafca6dea08bfec7eade24fa9ef5d58b17105db42768cfc6f4",
57
+ contentType: "gz"
58
+ },
59
+ arm64: {
60
+ url: "https://github.com/evilmartians/lefthook/releases/download/v2.0.11/lefthook_2.0.11_Windows_arm64.gz",
61
+ hash: "0b84a8283fd3187ff27ae53aec0b384c87f9713657dc85d639711d5eeec1d48d",
62
+ contentType: "gz"
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "golangci-lint": {
68
+ type: "github",
69
+ tag: "v2.7.2",
70
+ binaries: {
71
+ darwin: {
72
+ amd64: {
73
+ url: "https://github.com/golangci/golangci-lint/releases/download/v2.7.2/golangci-lint-2.7.2-darwin-amd64.tar.gz",
74
+ hash: "6966554840a02229a14c52641bc38c2c7a14d396f4c59ba0c7c8bb0675ca25c9",
75
+ contentType: "tar.gz",
76
+ binaryPath: "golangci-lint"
77
+ },
78
+ arm64: {
79
+ url: "https://github.com/golangci/golangci-lint/releases/download/v2.7.2/golangci-lint-2.7.2-darwin-arm64.tar.gz",
80
+ hash: "6ce86a00e22b3709f7b994838659c322fdc9eae09e263db50439ad4f6ec5785c",
81
+ contentType: "tar.gz",
82
+ binaryPath: "golangci-lint"
83
+ }
84
+ },
85
+ linux: {
86
+ amd64: {
87
+ url: "https://github.com/golangci/golangci-lint/releases/download/v2.7.2/golangci-lint-2.7.2-linux-amd64.tar.gz",
88
+ hash: "ce46a1f1d890e7b667259f70bb236297f5cf8791a9b6b98b41b283d93b5b6e88",
89
+ contentType: "tar.gz",
90
+ binaryPath: "golangci-lint"
91
+ },
92
+ arm64: {
93
+ url: "https://github.com/golangci/golangci-lint/releases/download/v2.7.2/golangci-lint-2.7.2-linux-arm64.tar.gz",
94
+ hash: "7028e810837722683dab679fb121336cfa303fecff39dfe248e3e36bc18d941b",
95
+ contentType: "tar.gz",
96
+ binaryPath: "golangci-lint"
97
+ }
98
+ },
99
+ windows: {
100
+ amd64: {
101
+ url: "https://github.com/golangci/golangci-lint/releases/download/v2.7.2/golangci-lint-2.7.2-windows-amd64.zip",
102
+ hash: "d48f456944c5850ca408feb0cac186345f0a6d8cf5dc31875c8f63d3dff5ee4c",
103
+ contentType: "zip",
104
+ binaryPath: "golangci-lint.exe"
105
+ },
106
+ arm64: {
107
+ url: "https://github.com/golangci/golangci-lint/releases/download/v2.7.2/golangci-lint-2.7.2-windows-arm64.zip",
108
+ hash: "e5fc39e0f3fe817f093b5467bfc60d2a9d1292de930b29322d2a1f8aff2a3bbf",
109
+ contentType: "zip",
110
+ binaryPath: "golangci-lint.exe"
111
+ }
112
+ }
113
+ }
114
+ },
115
+ typst: {
116
+ type: "github",
117
+ tag: "v0.14.2",
118
+ binaries: {
119
+ darwin: {
120
+ amd64: {
121
+ url: "https://github.com/typst/typst/releases/download/v0.14.2/typst-x86_64-apple-darwin.tar.xz",
122
+ hash: "4e91d8e1e33ab164f949c5762e01ee3faa585c8615a2a6bd5e3677fa8506b249",
123
+ contentType: "tar.xz",
124
+ binaryPath: "typst"
125
+ },
126
+ arm64: {
127
+ url: "https://github.com/typst/typst/releases/download/v0.14.2/typst-aarch64-apple-darwin.tar.xz",
128
+ hash: "470aa49a2298d20b65c119a10e4ff8808550453e0cb4d85625b89caf0cedf048",
129
+ contentType: "tar.xz",
130
+ binaryPath: "typst"
131
+ }
132
+ },
133
+ linux: {
134
+ amd64: {
135
+ url: "https://github.com/typst/typst/releases/download/v0.14.2/typst-x86_64-unknown-linux-musl.tar.xz",
136
+ hash: "a6044cbad2a954deb921167e257e120ac0a16b20339ec01121194ff9d394996d",
137
+ contentType: "tar.xz",
138
+ binaryPath: "typst"
139
+ },
140
+ arm64: {
141
+ url: "https://github.com/typst/typst/releases/download/v0.14.2/typst-aarch64-unknown-linux-musl.tar.xz",
142
+ hash: "491b101aa40a3a7ea82a3f8a6232cabb4e6a7e233810082e5ac812d43fdcd47a",
143
+ contentType: "tar.xz",
144
+ binaryPath: "typst"
145
+ }
146
+ },
147
+ windows: {
148
+ amd64: {
149
+ url: "https://github.com/typst/typst/releases/download/v0.14.2/typst-x86_64-pc-windows-msvc.zip",
150
+ hash: "51353994ac83218c3497052e89b2c432c53b9d4439cdc1b361e2ea4798ebfc13",
151
+ contentType: "zip",
152
+ binaryPath: "typst.exe"
153
+ },
154
+ arm64: {
155
+ url: "https://github.com/typst/typst/releases/download/v0.14.2/typst-aarch64-pc-windows-msvc.zip",
156
+ hash: "1c4aaa0de000ab1787dda354c34f4fa1fe3c2525d3d038e692a3d7daa333d551",
157
+ contentType: "zip",
158
+ binaryPath: "typst.exe"
159
+ }
160
+ }
161
+ }
162
+ },
163
+ typstyle: {
164
+ type: "github",
165
+ tag: "v0.14.0",
166
+ binaries: {
167
+ darwin: {
168
+ amd64: {
169
+ url: "https://github.com/typstyle-rs/typstyle/releases/download/v0.14.0/typstyle-x86_64-apple-darwin",
170
+ hash: "01eb7e03264b14ec838f402fb6c137b84e153449c0379179b8d7a547772344ea",
171
+ contentType: "binary"
172
+ },
173
+ arm64: {
174
+ url: "https://github.com/typstyle-rs/typstyle/releases/download/v0.14.0/typstyle-aarch64-apple-darwin",
175
+ hash: "588ab19b3935bc60603a204892b22dc2a5262a027bfec596306a73babda7c3fd",
176
+ contentType: "binary"
177
+ }
178
+ },
179
+ linux: {
180
+ amd64: {
181
+ url: "https://github.com/typstyle-rs/typstyle/releases/download/v0.14.0/typstyle-x86_64-unknown-linux-gnu",
182
+ hash: "581bb774b3a13511b0dc4fe248e973753c3c8e7a50b972ba6fde8eab760a8094",
183
+ contentType: "binary"
184
+ },
185
+ arm64: {
186
+ url: "https://github.com/typstyle-rs/typstyle/releases/download/v0.14.0/typstyle-aarch64-unknown-linux-gnu",
187
+ hash: "71b5ff9b8e03ee6615482af1aa0a22fc03ce1adda308b8bc18633fed51095636",
188
+ contentType: "binary"
189
+ }
190
+ },
191
+ windows: {
192
+ amd64: {
193
+ url: "https://github.com/typstyle-rs/typstyle/releases/download/v0.14.0/typstyle-x86_64-pc-windows-msvc.exe",
194
+ hash: "217d8aaec235ef00ac38dda60361624c8b86e1e122338cc98520a53d7fa6b86a",
195
+ contentType: "binary"
196
+ },
197
+ arm64: {
198
+ url: "https://github.com/typstyle-rs/typstyle/releases/download/v0.14.0/typstyle-aarch64-pc-windows-msvc.exe",
199
+ hash: "6bd70cea1b88da5888e07977498de25f90c6b3ad6c5914fd667b4f322c998dae",
200
+ contentType: "binary"
201
+ }
202
+ }
203
+ }
204
+ },
205
+ hadolint: {
206
+ type: "github",
207
+ tag: "v2.14.0",
208
+ binaries: {
209
+ darwin: {
210
+ amd64: {
211
+ url: "https://github.com/hadolint/hadolint/releases/download/v2.14.0/hadolint-macos-x86_64",
212
+ hash: "2b69a853433f1eca522ffb921cd490bd1321424d03331fd8390f93b7fb4a02e9",
213
+ contentType: "binary"
214
+ },
215
+ arm64: {
216
+ url: "https://github.com/hadolint/hadolint/releases/download/v2.14.0/hadolint-macos-arm64",
217
+ hash: "3625e2e9f43dcfe7bd38738a5f5520ed50ce39ed28485266e6803dd7bc197b10",
218
+ contentType: "binary"
219
+ }
220
+ },
221
+ linux: {
222
+ amd64: {
223
+ url: "https://github.com/hadolint/hadolint/releases/download/v2.14.0/hadolint-linux-x86_64",
224
+ hash: "6bf226944684f56c84dd014e8b979d27425c0148f61b3bd99bcc6f39e9dc5a47",
225
+ contentType: "binary"
226
+ },
227
+ arm64: {
228
+ url: "https://github.com/hadolint/hadolint/releases/download/v2.14.0/hadolint-linux-arm64",
229
+ hash: "331f1d3511b84a4f1e3d18d52fec284723e4019552f4f47b19322a53ce9a40ed",
230
+ contentType: "binary"
231
+ }
232
+ },
233
+ windows: {
234
+ amd64: {
235
+ url: "https://github.com/hadolint/hadolint/releases/download/v2.14.0/hadolint-windows-x86_64.exe",
236
+ hash: "8e0ee174f88edb14f207a68430c7a53c2883ed509cdbde9a3a26fffa140fa5e4",
237
+ contentType: "binary"
238
+ }
239
+ }
240
+ }
241
+ },
242
+ "dotenv-linter": {
243
+ type: "github",
244
+ tag: "v4.0.0",
245
+ binaries: {
246
+ darwin: {
247
+ amd64: {
248
+ url: "https://github.com/dotenv-linter/dotenv-linter/releases/download/v4.0.0/dotenv-linter-darwin-x86_64.tar.gz",
249
+ hash: "143361bcd3c859cac0b16a6eaa51f3f69f270f17a55431e2e44d76722a7f0271",
250
+ contentType: "tar.gz",
251
+ binaryPath: "dotenv-linter"
252
+ },
253
+ arm64: {
254
+ url: "https://github.com/dotenv-linter/dotenv-linter/releases/download/v4.0.0/dotenv-linter-darwin-arm64.tar.gz",
255
+ hash: "430ed45983cfc1d242cae959ec4b3b2df43fa1aff07d7750cc836d2f6479799a",
256
+ contentType: "tar.gz",
257
+ binaryPath: "dotenv-linter"
258
+ }
259
+ },
260
+ linux: {
261
+ amd64: {
262
+ url: "https://github.com/dotenv-linter/dotenv-linter/releases/download/v4.0.0/dotenv-linter-linux-x86_64.tar.gz",
263
+ hash: "9e2f1f6eb88a71ac15ef209f78f5a68644db82f132d2677112b4f80ec2bd2127",
264
+ contentType: "tar.gz",
265
+ binaryPath: "dotenv-linter"
266
+ },
267
+ arm64: {
268
+ url: "https://github.com/dotenv-linter/dotenv-linter/releases/download/v4.0.0/dotenv-linter-linux-aarch64.tar.gz",
269
+ hash: "c4113aafd35e5f9095b2f757061d07cc8eb5cc0bcd755249877af08b7ffafb9a",
270
+ contentType: "tar.gz",
271
+ binaryPath: "dotenv-linter"
272
+ }
273
+ },
274
+ windows: {
275
+ amd64: {
276
+ url: "https://github.com/dotenv-linter/dotenv-linter/releases/download/v4.0.0/dotenv-linter-win-x64.zip",
277
+ hash: "771214659b86d2de5c8c5214e6d59484ceb0de8a87037d488ce37d6ca6f6cc1a",
278
+ contentType: "zip",
279
+ binaryPath: "dotenv-linter.exe"
280
+ },
281
+ arm64: {
282
+ url: "https://github.com/dotenv-linter/dotenv-linter/releases/download/v4.0.0/dotenv-linter-win-aarch64.zip",
283
+ hash: "523f47a78a52ebdd5ff1fa30c94e1df0ed66f80c5c898eb49e72caec47a23e5e",
284
+ contentType: "zip",
285
+ binaryPath: "dotenv-linter.exe"
286
+ }
287
+ }
288
+ }
289
+ },
290
+ shellcheck: {
291
+ type: "github",
292
+ tag: "v0.11.0",
293
+ binaries: {
294
+ darwin: {
295
+ amd64: {
296
+ url: "https://github.com/koalaman/shellcheck/releases/download/v0.11.0/shellcheck-v0.11.0.darwin.x86_64.tar.xz",
297
+ hash: "3c89db4edcab7cf1c27bff178882e0f6f27f7afdf54e859fa041fca10febe4c6",
298
+ contentType: "tar.xz",
299
+ binaryPath: "shellcheck"
300
+ },
301
+ arm64: {
302
+ url: "https://github.com/koalaman/shellcheck/releases/download/v0.11.0/shellcheck-v0.11.0.darwin.aarch64.tar.xz",
303
+ hash: "56affdd8de5527894dca6dc3d7e0a99a873b0f004d7aabc30ae407d3f48b0a79",
304
+ contentType: "tar.xz",
305
+ binaryPath: "shellcheck"
306
+ }
307
+ },
308
+ linux: {
309
+ amd64: {
310
+ url: "https://github.com/koalaman/shellcheck/releases/download/v0.11.0/shellcheck-v0.11.0.linux.x86_64.tar.xz",
311
+ hash: "8c3be12b05d5c177a04c29e3c78ce89ac86f1595681cab149b65b97c4e227198",
312
+ contentType: "tar.xz",
313
+ binaryPath: "shellcheck"
314
+ },
315
+ arm64: {
316
+ url: "https://github.com/koalaman/shellcheck/releases/download/v0.11.0/shellcheck-v0.11.0.linux.aarch64.tar.xz",
317
+ hash: "12b331c1d2db6b9eb13cfca64306b1b157a86eb69db83023e261eaa7e7c14588",
318
+ contentType: "tar.xz",
319
+ binaryPath: "shellcheck"
320
+ }
321
+ }
322
+ }
323
+ },
324
+ utpm: {
325
+ type: "github",
326
+ tag: "v0.2.0",
327
+ binaries: {
328
+ darwin: {
329
+ amd64: {
330
+ url: "https://github.com/typst-community/utpm/releases/download/v0.2.0/utpm-x86_64-apple-darwin.tar.xz",
331
+ hash: "fa8bedae8519192731765076ea5765b27caff960f8777dbe60a5955c6280932e",
332
+ contentType: "tar.xz",
333
+ binaryPath: "utpm"
334
+ },
335
+ arm64: {
336
+ url: "https://github.com/typst-community/utpm/releases/download/v0.2.0/utpm-aarch64-apple-darwin.tar.xz",
337
+ hash: "e0f2d35afe1fe46173650d925a3bf075d4d9ae2ce1ff4fd09f6a00a8ca54c1b1",
338
+ contentType: "tar.xz",
339
+ binaryPath: "utpm"
340
+ }
341
+ },
342
+ linux: {
343
+ amd64: {
344
+ url: "https://github.com/typst-community/utpm/releases/download/v0.2.0/utpm-x86_64-unknown-linux-musl.tar.xz",
345
+ hash: "022ce6d4a7058dcc44fb2c5beb4b4a2a0bb576b43c18d696486d1d58b55550a5",
346
+ contentType: "tar.xz",
347
+ binaryPath: "utpm"
348
+ },
349
+ arm64: {
350
+ url: "https://github.com/typst-community/utpm/releases/download/v0.2.0/utpm-aarch64-unknown-linux-musl.tar.xz",
351
+ hash: "bbea0151be934a1efcf926f329146d5e8f382e59a66386aab289b0994d2b27d4",
352
+ contentType: "tar.xz",
353
+ binaryPath: "utpm"
354
+ }
355
+ },
356
+ windows: {
357
+ amd64: {
358
+ url: "https://github.com/typst-community/utpm/releases/download/v0.2.0/utpm-x86_64-pc-windows-msvc.zip",
359
+ hash: "c1f93c77406bc7d754c48ed78f19ac662ea3bb022106dfe40541144fccf6f8aa",
360
+ contentType: "zip",
361
+ binaryPath: "utpm.exe"
362
+ },
363
+ arm64: {
364
+ url: "https://github.com/typst-community/utpm/releases/download/v0.2.0/utpm-aarch64-pc-windows-msvc.zip",
365
+ hash: "3bed9ebe2cfbef41e1a555f37f4162dfb05dfc06faeaadf18f6b8a7c68ea48aa",
366
+ contentType: "zip",
367
+ binaryPath: "utpm.exe"
368
+ }
369
+ }
370
+ }
371
+ },
372
+ protolint: {
373
+ type: "github",
374
+ tag: "v0.56.4",
375
+ binaries: {
376
+ darwin: {
377
+ amd64: {
378
+ url: "https://github.com/yoheimuta/protolint/releases/download/v0.56.4/protolint_0.56.4_darwin_amd64.tar.gz",
379
+ hash: "b3257102ed98da9ce81f25662418c38c718d579d243fd218b2a6893f24a8a998",
380
+ contentType: "tar.gz",
381
+ binaryPath: "protolint"
382
+ },
383
+ arm64: {
384
+ url: "https://github.com/yoheimuta/protolint/releases/download/v0.56.4/protolint_0.56.4_darwin_arm64.tar.gz",
385
+ hash: "3253f08d2aefb58f86117336bf06677b7b73747653a446fe539ecc52e34b5371",
386
+ contentType: "tar.gz",
387
+ binaryPath: "protolint"
388
+ }
389
+ },
390
+ linux: {
391
+ amd64: {
392
+ url: "https://github.com/yoheimuta/protolint/releases/download/v0.56.4/protolint_0.56.4_linux_amd64.tar.gz",
393
+ hash: "94d0a910f4da6aef63b331bb9cb2dcbc6ec3e4374a1213f02919f888fe796249",
394
+ contentType: "tar.gz",
395
+ binaryPath: "protolint"
396
+ },
397
+ arm64: {
398
+ url: "https://github.com/yoheimuta/protolint/releases/download/v0.56.4/protolint_0.56.4_linux_arm64.tar.gz",
399
+ hash: "b37c939a2dbd2164a2b473f06e4d07f9a9d291466d988abe5cad013796d9bebe",
400
+ contentType: "tar.gz",
401
+ binaryPath: "protolint"
402
+ }
403
+ },
404
+ windows: {
405
+ amd64: {
406
+ url: "https://github.com/yoheimuta/protolint/releases/download/v0.56.4/protolint_0.56.4_windows_amd64.tar.gz",
407
+ hash: "35691e4d2394abde9f3fe180a0f5605988a793592a3e9396c71c310fca294ab5",
408
+ contentType: "tar.gz",
409
+ binaryPath: "protolint"
410
+ },
411
+ arm64: {
412
+ url: "https://github.com/yoheimuta/protolint/releases/download/v0.56.4/protolint_0.56.4_windows_arm64.tar.gz",
413
+ hash: "798bcec78d79b6e1e1b74ce56e6febabdda3895eb3567fd69b3ae2446e420bd5",
414
+ contentType: "tar.gz",
415
+ binaryPath: "protolint"
416
+ }
417
+ }
418
+ }
419
+ },
420
+ "editorconfig-checker": {
421
+ type: "github",
422
+ tag: "v3.6.0",
423
+ binaries: {
424
+ darwin: {
425
+ amd64: {
426
+ url: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v3.6.0/ec-darwin-amd64.tar.gz",
427
+ hash: "7370ea4c7c8a66be0fd9646557070c0a67c5a4ef824c16651aa662b3a89827ac",
428
+ contentType: "tar.gz",
429
+ binaryPath: "bin/ec-darwin-amd64"
430
+ },
431
+ arm64: {
432
+ url: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v3.6.0/ec-darwin-arm64.tar.gz",
433
+ hash: "82d63c1d7f36acea6d418b161341ec56fd60aac2ff19f1eea301d4a3eeb92de8",
434
+ contentType: "tar.gz",
435
+ binaryPath: "bin/ec-darwin-arm64"
436
+ }
437
+ },
438
+ linux: {
439
+ amd64: {
440
+ url: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v3.6.0/ec-linux-amd64.tar.gz",
441
+ hash: "a2e6d2b9242c325007d66db1842fc83f387e389ed9af3cebfaeee06d19a4a88a",
442
+ contentType: "tar.gz",
443
+ binaryPath: "bin/ec-linux-amd64"
444
+ },
445
+ arm64: {
446
+ url: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v3.6.0/ec-linux-arm64.tar.gz",
447
+ hash: "016e5c3d7c26190722e18c0c128e445bdbb33f5c0ead8b039295a6b0019801cb",
448
+ contentType: "tar.gz",
449
+ binaryPath: "bin/ec-linux-arm64"
450
+ }
451
+ },
452
+ windows: {
453
+ amd64: {
454
+ url: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v3.6.0/ec-windows-amd64.tar.gz",
455
+ hash: "dbf2cd61cda4a72ad48e8c3d17118096524a4fd7d899beeb6603daf3fd79e611",
456
+ contentType: "tar.gz",
457
+ binaryPath: "bin/ec-windows-amd64.exe"
458
+ },
459
+ arm64: {
460
+ url: "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v3.6.0/ec-windows-arm64.tar.gz",
461
+ hash: "fd1db4a9a00f4ac650298cc6bb3484311fa5784bb3a576931fc8268c127b8fd4",
462
+ contentType: "tar.gz",
463
+ binaryPath: "bin/ec-windows-arm64.exe"
464
+ }
465
+ }
466
+ }
467
+ },
468
+ tflint: {
469
+ type: "github",
470
+ tag: "v0.60.0",
471
+ binaries: {
472
+ darwin: {
473
+ amd64: {
474
+ url: "https://github.com/terraform-linters/tflint/releases/download/v0.60.0/tflint_darwin_amd64.zip",
475
+ hash: "256f70ad2c9963690bccc31ffda6be0159f1c5f857b46773b70d01d56b711280",
476
+ contentType: "zip",
477
+ binaryPath: "tflint"
478
+ },
479
+ arm64: {
480
+ url: "https://github.com/terraform-linters/tflint/releases/download/v0.60.0/tflint_darwin_arm64.zip",
481
+ hash: "753a392b70e37b2970732bdaf0c9ad98b0f8ecb96026b21e91261e4e967c7f5e",
482
+ contentType: "zip",
483
+ binaryPath: "tflint"
484
+ }
485
+ },
486
+ linux: {
487
+ amd64: {
488
+ url: "https://github.com/terraform-linters/tflint/releases/download/v0.60.0/tflint_linux_amd64.zip",
489
+ hash: "3476ceedcf0c4f9f2bed35e92988e1411bec2caa543c9387bffaa720df9efaf7",
490
+ contentType: "zip",
491
+ binaryPath: "tflint"
492
+ },
493
+ arm64: {
494
+ url: "https://github.com/terraform-linters/tflint/releases/download/v0.60.0/tflint_linux_arm64.zip",
495
+ hash: "8f01d273e58f44f6ed10e198fa1f5d0a8080b01869de64658528275e943ef47a",
496
+ contentType: "zip",
497
+ binaryPath: "tflint"
498
+ }
499
+ },
500
+ windows: {
501
+ amd64: {
502
+ url: "https://github.com/terraform-linters/tflint/releases/download/v0.60.0/tflint_windows_amd64.zip",
503
+ hash: "a6e08412ec6bf9041325d75a0b88846f8e3b8fb24e5dda105574fa7565235f4c",
504
+ contentType: "zip",
505
+ binaryPath: "tflint"
506
+ }
507
+ }
508
+ }
509
+ },
510
+ shfmt: {
511
+ type: "github",
512
+ tag: "v3.12.0",
513
+ binaries: {
514
+ darwin: {
515
+ amd64: {
516
+ url: "https://github.com/mvdan/sh/releases/download/v3.12.0/shfmt_v3.12.0_darwin_amd64",
517
+ hash: "c31548693de6584e6164b7ed5fbb7b4a083f2d937ca94b4e0ddf59aa461a85e4",
518
+ contentType: "binary"
519
+ },
520
+ arm64: {
521
+ url: "https://github.com/mvdan/sh/releases/download/v3.12.0/shfmt_v3.12.0_darwin_arm64",
522
+ hash: "d903802e0ce3ecbc82b98512f55ba370b0d37a93f3f78de394f5b657052b33dd",
523
+ contentType: "binary"
524
+ }
525
+ },
526
+ linux: {
527
+ amd64: {
528
+ url: "https://github.com/mvdan/sh/releases/download/v3.12.0/shfmt_v3.12.0_linux_amd64",
529
+ hash: "d9fbb2a9c33d13f47e7618cf362a914d029d02a6df124064fff04fd688a745ea",
530
+ contentType: "binary"
531
+ },
532
+ arm64: {
533
+ url: "https://github.com/mvdan/sh/releases/download/v3.12.0/shfmt_v3.12.0_linux_arm64",
534
+ hash: "5f3fe3fa6a9f766e6a182ba79a94bef8afedafc57db0b1ad32b0f67fae971ba4",
535
+ contentType: "binary"
536
+ }
537
+ },
538
+ windows: {
539
+ amd64: {
540
+ url: "https://github.com/mvdan/sh/releases/download/v3.12.0/shfmt_v3.12.0_windows_amd64.exe",
541
+ hash: "c8bda517ba1c640ce4a715c0fa665439ddbe4357ba5e9b77b0e51e70e2b9c94b",
542
+ contentType: "binary"
543
+ }
544
+ }
545
+ }
546
+ },
547
+ gitleaks: {
548
+ type: "github",
549
+ tag: "v8.30.0",
550
+ binaries: {
551
+ darwin: {
552
+ amd64: {
553
+ url: "https://github.com/gitleaks/gitleaks/releases/download/v8.30.0/gitleaks_8.30.0_darwin_x64.tar.gz",
554
+ hash: "ca221d012d247080c2f6f61f4b7a83bffa2453806b0c195c795bbe9a8c775ed5",
555
+ contentType: "tar.gz",
556
+ binaryPath: "gitleaks"
557
+ },
558
+ arm64: {
559
+ url: "https://github.com/gitleaks/gitleaks/releases/download/v8.30.0/gitleaks_8.30.0_darwin_arm64.tar.gz",
560
+ hash: "b251ab2bcd4cd8ba9e56ff37698c033ebf38582b477d21ebd86586d927cf87e7",
561
+ contentType: "tar.gz",
562
+ binaryPath: "gitleaks"
563
+ }
564
+ },
565
+ linux: {
566
+ amd64: {
567
+ url: "https://github.com/gitleaks/gitleaks/releases/download/v8.30.0/gitleaks_8.30.0_linux_x64.tar.gz",
568
+ hash: "79a3ab579b53f71efd634f3aaf7e04a0fa0cf206b7ed434638d1547a2470a66e",
569
+ contentType: "tar.gz",
570
+ binaryPath: "gitleaks"
571
+ },
572
+ arm64: {
573
+ url: "https://github.com/gitleaks/gitleaks/releases/download/v8.30.0/gitleaks_8.30.0_linux_arm64.tar.gz",
574
+ hash: "b4cbbb6ddf7d1b2a603088cd03a4e3f7ce48ee7fd449b51f7de6ee2906f5fa2f",
575
+ contentType: "tar.gz",
576
+ binaryPath: "gitleaks"
577
+ }
578
+ },
579
+ windows: {
580
+ amd64: {
581
+ url: "https://github.com/gitleaks/gitleaks/releases/download/v8.30.0/gitleaks_8.30.0_windows_x64.zip",
582
+ hash: "54fe94f644b832dd08e8c3a5915efb3bfa862386d59fb27ca0792cb687a83573",
583
+ contentType: "zip",
584
+ binaryPath: "gitleaks.exe"
585
+ }
586
+ }
587
+ }
588
+ },
589
+ sops: {
590
+ type: "github",
591
+ tag: "v3.11.0",
592
+ binaries: {
593
+ darwin: {
594
+ amd64: {
595
+ url: "https://github.com/getsops/sops/releases/download/v3.11.0/sops-v3.11.0.darwin.amd64",
596
+ hash: "c36583e178f7e83b947044b292e106e79615f7725f75cb147045fb0c81953e2b",
597
+ contentType: "binary"
598
+ },
599
+ arm64: {
600
+ url: "https://github.com/getsops/sops/releases/download/v3.11.0/sops-v3.11.0.darwin.arm64",
601
+ hash: "45e7562b1f5d022c4d7a4e4c3d1b7b1a7ee6c328356629286cfd18a394b00e7c",
602
+ contentType: "binary"
603
+ }
604
+ },
605
+ linux: {
606
+ amd64: {
607
+ url: "https://github.com/getsops/sops/releases/download/v3.11.0/sops-v3.11.0.linux.amd64",
608
+ hash: "775f1384d55decfad228e7196a3f683791914f92a473f78fc47700531c29dfef",
609
+ contentType: "binary"
610
+ },
611
+ arm64: {
612
+ url: "https://github.com/getsops/sops/releases/download/v3.11.0/sops-v3.11.0.linux.arm64",
613
+ hash: "c71d32f74b3a73ce283affe6ed36e221a8f1476c3d37963f60bd962fb1676681",
614
+ contentType: "binary"
615
+ }
616
+ }
617
+ }
618
+ }
619
+ };
620
+
621
+ // src/datamitsu-config/apps.ts
622
+ var appState = appState_default;
623
+ var mapOfApps = {
624
+ commitlint: {
625
+ shell: {
626
+ args: [facts().env.DATAMITSU_APP_COMMITLINT_BINARY_FILEPATH || ""],
627
+ name: "node"
628
+ }
629
+ },
630
+ // protolint: appState.protolint?.binaries||{},
631
+ "editorconfig-checker": {
632
+ binary: {
633
+ binaries: appState["editorconfig-checker"]?.binaries || {}
634
+ }
635
+ },
636
+ // "go-coverage": {
637
+ // shell: {
638
+ // name: "go",
639
+ // args: [
640
+ // "test", "-coverprofile=coverage.out", "./..."
641
+ // ]
642
+ // command: "go -coverprofile=coverage.out ./... && go tool cover -func=coverage.out | grep total" },
643
+ // },
644
+ eslint: {
645
+ shell: {
646
+ args: [
647
+ facts().env.DATAMITSU_APP_ESLINT_BINARY_FILEPATH || "",
648
+ "-c",
649
+ tools.Path.join(facts().cwd, "eslint.config.ts")
650
+ ],
651
+ name: "node"
652
+ }
653
+ },
654
+ gitleaks: {
655
+ binary: {
656
+ binaries: appState.gitleaks?.binaries || {}
657
+ }
658
+ },
659
+ "go-test": {
660
+ shell: { args: ["test", "./..."], name: "go" }
661
+ },
662
+ "golangci-lint": {
663
+ binary: {
664
+ binaries: appState["golangci-lint"]?.binaries || {}
665
+ }
666
+ },
667
+ knip: {
668
+ shell: {
669
+ args: [facts().env.DATAMITSU_APP_KNIP_BINARY_FILEPATH || ""],
670
+ name: "node"
671
+ }
672
+ },
673
+ lefthook: {
674
+ binary: {
675
+ binaries: appState.lefthook?.binaries || {}
676
+ },
677
+ required: true
678
+ },
679
+ mmdc: {
680
+ // https://www.npmjs.com/package/@mermaid-js/mermaid-cli
681
+ pnpm: { packageName: "@mermaid-js/mermaid-cli", version: "11.12.0" }
682
+ },
683
+ prettier: {
684
+ shell: {
685
+ args: [facts().env.DATAMITSU_APP_PRETTIER_BINARY_FILEPATH || ""],
686
+ name: "node"
687
+ }
688
+ },
689
+ // hadolint: {
690
+ // binary: {
691
+ // binaries: appState.hadolint?.binaries||{},
692
+ // },
693
+ // },
694
+ // "dotenv-linter": {
695
+ // binary: appState["dotenv-linter"]?.binaries||{},
696
+ // },
697
+ shellcheck: {
698
+ binary: {
699
+ binaries: appState.shellcheck?.binaries || {}
700
+ }
701
+ },
702
+ shfmt: {
703
+ binary: {
704
+ binaries: appState.shfmt?.binaries || {}
705
+ }
706
+ },
707
+ slidev: {
708
+ // https://www.npmjs.com/package/@slidev/cli
709
+ pnpm: { packageName: "@slidev/cli", version: "52.10.1" }
710
+ },
711
+ sops: {
712
+ binary: {
713
+ binaries: appState.sops?.binaries || {}
714
+ }
715
+ },
716
+ "sort-package-json": {
717
+ shell: {
718
+ args: [facts().env.DATAMITSU_APP_SORT_PACKAGE_JSON_BINARY_FILEPATH || ""],
719
+ name: "node"
720
+ }
721
+ },
722
+ spectral: {
723
+ // https://www.npmjs.com/package/@stoplight/spectral-cli
724
+ pnpm: { packageName: "@stoplight/spectral-cli", version: "6.15.0" }
725
+ },
726
+ syncpack: {
727
+ shell: {
728
+ args: [facts().env.DATAMITSU_APP_SYNCPACK_BINARY_FILEPATH || ""],
729
+ name: "node"
730
+ }
731
+ },
732
+ tflint: {
733
+ binary: {
734
+ binaries: appState.tflint?.binaries || {}
735
+ }
736
+ },
737
+ tsc: {
738
+ shell: {
739
+ args: [facts().env.DATAMITSU_APP_TSC_BINARY_FILEPATH || ""],
740
+ name: "node"
741
+ }
742
+ },
743
+ typst: {
744
+ binary: {
745
+ binaries: appState.typst?.binaries || {}
746
+ }
747
+ },
748
+ typstyle: {
749
+ binary: {
750
+ binaries: appState.typstyle?.binaries || {}
751
+ }
752
+ },
753
+ utpm: {
754
+ binary: {
755
+ binaries: appState.utpm?.binaries || {}
756
+ }
757
+ },
758
+ yamllint: {
759
+ // https://pypi.org/project/yamllint/
760
+ uvx: { packageName: "yamllint", version: "1.37.1" }
761
+ }
762
+ };
763
+
764
+ // src/datamitsu-config/ignore.ts
765
+ var ignoreGroups = {
766
+ "Build outputs": [
767
+ "**/.next/",
768
+ "**/build/",
769
+ "**/dist/",
770
+ "**/out/",
771
+ "**/.turbo/",
772
+ "**/.vercel/",
773
+ "**/.output/",
774
+ "**/public/build/"
775
+ ],
776
+ "Cache & temporary files": [
777
+ "**/tsconfig.tsbuildinfo",
778
+ "**/.eslintcache",
779
+ "**/.prettiercache",
780
+ "**/.stylelintcache",
781
+ "**/*.tmp",
782
+ "**/*.swp",
783
+ "**/*.swo",
784
+ "**/*~",
785
+ "**/.cache/",
786
+ "**/.parcel-cache/",
787
+ "**/.temp/",
788
+ "**/.tmp/"
789
+ ],
790
+ Dependencies: [
791
+ "**/node_modules/",
792
+ "**/vendor/",
793
+ "**/.pnp.*",
794
+ "**/.yarn/cache",
795
+ "**/.yarn/unplugged",
796
+ "**/.yarn/build-state.yml",
797
+ "**/.yarn/install-state.gz"
798
+ ],
799
+ Environment: [
800
+ ".env",
801
+ ".env.local",
802
+ ".env.*.local",
803
+ ".env.development.local",
804
+ ".env.test.local",
805
+ ".env.production.local",
806
+ "**/.env",
807
+ "**/.env.local",
808
+ "**/.env.*.local"
809
+ ],
810
+ "Golang specific": [
811
+ // "**/bin/",
812
+ "**/*.exe",
813
+ "**/*.exe~",
814
+ "**/*.dll",
815
+ "**/*.so",
816
+ "**/*.dylib",
817
+ "**/*.test",
818
+ "**/*.out",
819
+ "**/go.work",
820
+ "**/go.work.sum"
821
+ ],
822
+ "IDE & OS": [
823
+ "**/.DS_Store",
824
+ "**/Thumbs.db",
825
+ "**/.idea/*",
826
+ "**/.fleet/*",
827
+ "**/.vscode/*",
828
+ "!**/.vscode/launch.json",
829
+ "!**/.vscode/settings.json",
830
+ "!**/.vscode/extensions.json",
831
+ "**/*.sublime-workspace",
832
+ "**/*.iml",
833
+ "**/.project",
834
+ "**/.classpath",
835
+ "**/.settings/*"
836
+ ],
837
+ Logs: [
838
+ "**/.pnpm-debug.log*",
839
+ "**/npm-debug.log*",
840
+ "**/yarn-debug.log*",
841
+ "**/yarn-error.log*",
842
+ "**/lerna-debug.log*",
843
+ "**/*.log"
844
+ ],
845
+ Other: ["**/*.gpg"],
846
+ "Security & Secrets": [
847
+ "**/*.key",
848
+ "**/*.pem",
849
+ "**/*.p12",
850
+ "**/*.pfx",
851
+ "**/*.cer",
852
+ "**/*.crt",
853
+ "**/secrets.yml",
854
+ "**/secrets.json"
855
+ ],
856
+ Testing: [
857
+ "**/coverage/",
858
+ "**/*.cov",
859
+ "**/.cover/",
860
+ "**/storybook-static/",
861
+ "**/playwright-report/",
862
+ "**/playwright-results/",
863
+ "**/playwright/.cache/",
864
+ "**/test-results/",
865
+ "**/allure-report/",
866
+ "**/.nyc_output/",
867
+ "**/e2e/screenshots/",
868
+ "**/e2e/videos/"
869
+ ]
870
+ };
871
+
872
+ // src/datamitsu-config/cmdInit.ts
873
+ var init = {
874
+ ".dockerignore": {
875
+ content: (context) => {
876
+ const mergedRules = tools.Ignore.parse(
877
+ [tools.Ignore.stringify(ignoreGroups), context.existingContent || ""].join("\n")
878
+ );
879
+ return tools.Ignore.stringify(mergedRules.groups, mergedRules.groupOrder) + "\n";
880
+ },
881
+ rootOnly: true
882
+ },
883
+ ".gitignore": {
884
+ content: (context) => {
885
+ const mergedRules = tools.Ignore.parse(
886
+ [tools.Ignore.stringify(ignoreGroups), context.existingContent || ""].join("\n")
887
+ );
888
+ return tools.Ignore.stringify(mergedRules.groups, mergedRules.groupOrder) + "\n";
889
+ },
890
+ rootOnly: true
891
+ },
892
+ ".gitleaks.toml": {
893
+ content: (context) => {
894
+ const data = TOML.parse(context.existingContent || "");
895
+ return TOML.stringify({
896
+ ...data,
897
+ extend: {
898
+ useDefault: true
899
+ },
900
+ title: "Custom Gitleaks configuration"
901
+ });
902
+ },
903
+ otherFileNameList: ["gitleaks.toml"],
904
+ rootOnly: true
905
+ },
906
+ ".golangci.yaml": {
907
+ content: (context) => {
908
+ const previousConfig = YAML.parse(context.existingContent || "");
909
+ return YAML.stringify({ ...previousConfig, version: "2" });
910
+ },
911
+ otherFileNameList: [".golangci.yml", ".golangci.yaml", ".golangci.toml", ".golangci.json"],
912
+ projectTypes: ["golang-package"]
913
+ },
914
+ ".npmrc": {
915
+ content: () => {
916
+ const m = {
917
+ audit: "true",
918
+ "audit-level": "high",
919
+ "auto-install-peers": "true",
920
+ registry: "https://registry.npmjs.org/",
921
+ "save-prefix": "",
922
+ "strict-ssl": "true",
923
+ // "ignore-scripts": "true",
924
+ "unsafe-perm": "false"
925
+ };
926
+ return Object.entries(m).sort((a, b) => a[0].localeCompare(b[0])).reduce((acc, [key, value]) => {
927
+ acc.push(`${key}=${value}`);
928
+ return acc;
929
+ }, []).join("\n") + "\n";
930
+ },
931
+ projectTypes: ["npm-package"],
932
+ rootOnly: true
933
+ },
934
+ // ".editorconfig": {
935
+ // content: (context) => {
936
+ // // https://editorconfig.org
937
+ // // https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
938
+ // const existing = INI.toRecord(INI.parse(context.existingContent || ""));
939
+ // const baseParams: Record<string, string> = {
940
+ // indent_style: "tab",
941
+ // indent_size: "2",
942
+ // end_of_line: "lf",
943
+ // charset: "utf-8",
944
+ // max_line_length: "120",
945
+ // insert_final_newline: "true",
946
+ // trim_trailing_whitespace: "true",
947
+ // };
948
+ // const data: INI.SectionEntry[] = [
949
+ // {
950
+ // name: "DEFAULT",
951
+ // properties: { root: String(context.isRoot) },
952
+ // },
953
+ // {
954
+ // name: "*",
955
+ // properties: { ...existing["*"], ...baseParams },
956
+ // },
957
+ // {
958
+ // name: "*.go",
959
+ // properties: {
960
+ // ...existing["*.go"],
961
+ // ...baseParams,
962
+ // indent_size: "2",
963
+ // },
964
+ // },
965
+ // {
966
+ // name: "*.{js,cjs,mjs,ts,cts,mts,tsx,ctsx,mtsx,scss}",
967
+ // properties: {
968
+ // ...existing["*.{js,cjs,mjs,ts,cts,mts,tsx,ctsx,mtsx,scss}"],
969
+ // ...baseParams,
970
+ // quote_type: "double",
971
+ // },
972
+ // },
973
+ // {
974
+ // name: "*.{kt,kts}",
975
+ // properties: {
976
+ // ...existing["*.{kt,kts}"],
977
+ // ...baseParams,
978
+ // indent_size: "2",
979
+ // },
980
+ // },
981
+ // {
982
+ // name: "*.md",
983
+ // properties: {
984
+ // ...existing["*.md"],
985
+ // indent_style: "space",
986
+ // trim_trailing_whitespace: "false",
987
+ // },
988
+ // },
989
+ // {
990
+ // name: "GNUmakefile",
991
+ // properties: { ...existing["GNUmakefile"], indent_size: "2" },
992
+ // },
993
+ // {
994
+ // name: "Makefile",
995
+ // properties: { ...existing["Makefile"], indent_size: "2" },
996
+ // },
997
+ // {
998
+ // name: "COMMIT_EDITMSG",
999
+ // properties: { ...existing["COMMIT_EDITMSG"], max_line_length: "0" },
1000
+ // },
1001
+ // {
1002
+ // name: "*.{yml,yaml,json}",
1003
+ // properties: {
1004
+ // ...existing["*.{yml,json}"],
1005
+ // indent_style: "space",
1006
+ // indent_size: "2",
1007
+ // },
1008
+ // },
1009
+ // ];
1010
+ ".vscode/extensions.json": {
1011
+ content: (context) => {
1012
+ const config = JSON.parse(context.existingContent || "{}");
1013
+ const recommendations = [
1014
+ .../* @__PURE__ */ new Set([
1015
+ "dbaeumer.vscode-eslint",
1016
+ "EditorConfig.EditorConfig",
1017
+ "github.vscode-github-actions",
1018
+ "GitHub.vscode-pull-request-github",
1019
+ "johnsoncodehk.vscode-tsconfig-helper",
1020
+ "streetsidesoftware.code-spell-checker",
1021
+ "usernamehw.errorlens",
1022
+ ...config.recommendations || []
1023
+ ])
1024
+ ].sort((a, b) => a.localeCompare(b));
1025
+ const result = JSON.stringify(
1026
+ {
1027
+ ...config,
1028
+ recommendations
1029
+ },
1030
+ null,
1031
+ 2
1032
+ ) + "\n";
1033
+ return result;
1034
+ },
1035
+ rootOnly: true
1036
+ },
1037
+ ".vscode/settings.json": {
1038
+ content: (context) => {
1039
+ const config = JSON.parse(context.existingContent || "{}");
1040
+ const explorer_fileNesting_patterns = {
1041
+ ...config["explorer.fileNesting.patterns"],
1042
+ "*.css": "$(capture).css.map, $(capture).*.css",
1043
+ "*.go": "$(capture)_test.go",
1044
+ "*.ts": "$(capture).js, $(capture).d.ts.map, $(capture).*.ts, $(capture)_*.js, $(capture)_*.ts",
1045
+ "*.tsx": "$(capture).ts, $(capture).*.tsx, $(capture)_*.ts, $(capture)_*.tsx",
1046
+ ".env": "*.env, .env.*, .envrc, env.d.ts",
1047
+ ".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*",
1048
+ "cargo.toml": ".clippy.toml, .rustfmt.toml, cargo.lock, clippy.toml, cross.toml, rust-toolchain.toml, rustfmt.toml",
1049
+ "go.mod": ".air*, go.sum, .golangci.yaml",
1050
+ "go.work": "go.work.sum",
1051
+ "readme*": "authors, backers*, changelog*, citation*, code_of_conduct*, codeowners, contributing*, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors*"
1052
+ };
1053
+ return JSON.stringify(
1054
+ {
1055
+ ...config,
1056
+ "errorLens.enabledDiagnosticLevels": ["warning", "error"],
1057
+ "errorLens.excludeBySource": ["cSpell", "Grammarly", "eslint"],
1058
+ "explorer.fileNesting.enabled": true,
1059
+ "explorer.fileNesting.expand": false,
1060
+ "explorer.fileNesting.patterns": explorer_fileNesting_patterns,
1061
+ "search.exclude": {
1062
+ "**/*.snap": true,
1063
+ "**/*.svg": true,
1064
+ "**/.git": true,
1065
+ "**/.github": false,
1066
+ "**/.nuxt": true,
1067
+ "**/.output": true,
1068
+ "**/.pnpm": true,
1069
+ "**/.vscode": true,
1070
+ "**/.yarn": true,
1071
+ "**/assets": true,
1072
+ "**/bower_components": true,
1073
+ "**/CHANGELOG*": true,
1074
+ "**/dist/**": true,
1075
+ "**/LICENSE*": true,
1076
+ "**/logs": true,
1077
+ "**/node_modules": true,
1078
+ "**/out/**": true,
1079
+ "**/package-lock.json": true,
1080
+ "**/pnpm-lock.yaml": true,
1081
+ "**/public": true,
1082
+ "**/temp": true,
1083
+ "**/yarn.lock": true
1084
+ }
1085
+ },
1086
+ null,
1087
+ 2
1088
+ ) + "\n";
1089
+ },
1090
+ rootOnly: true
1091
+ },
1092
+ "commitlint.config.ts": {
1093
+ content: () => {
1094
+ return [
1095
+ `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/commitlint";`,
1096
+ "",
1097
+ "export default config;",
1098
+ ""
1099
+ ].join("\n");
1100
+ },
1101
+ otherFileNameList: [
1102
+ ".commitlintrc",
1103
+ ".commitlintrc.json",
1104
+ ".commitlintrc.yaml",
1105
+ ".commitlintrc.yml",
1106
+ ".commitlintrc.js",
1107
+ ".commitlintrc.cjs",
1108
+ ".commitlintrc.mjs",
1109
+ ".commitlintrc.ts",
1110
+ ".commitlintrc.cts",
1111
+ ".commitlintrc.mts",
1112
+ "commitlint.config.js",
1113
+ "commitlint.config.cjs",
1114
+ "commitlint.config.mjs",
1115
+ "commitlint.config.ts",
1116
+ "commitlint.config.cts",
1117
+ "commitlint.config.mts"
1118
+ ],
1119
+ rootOnly: true
1120
+ },
1121
+ // delete-only configuration - removes deprecated config files without creating new ones
1122
+ "deprecated-configs": {
1123
+ deleteOnly: true,
1124
+ otherFileNameList: [".babelrc", ".babelrc.js", "babel.config.js", ".editorconfig", ".editorconfig-checker.json"]
1125
+ },
1126
+ "eslint.config.ts": {
1127
+ content: () => {
1128
+ return [
1129
+ `import { defineConfig } from "${facts().env.DATAMITSU_PACKAGE_NAME}/eslint";`,
1130
+ "",
1131
+ "const config = await defineConfig();",
1132
+ "",
1133
+ "export default config;",
1134
+ ""
1135
+ ].join("\n");
1136
+ },
1137
+ otherFileNameList: [
1138
+ "eslint.config.js",
1139
+ "eslint.config.mjs",
1140
+ "eslint.config.cjs",
1141
+ "eslint.config.ts",
1142
+ "eslint.config.mts",
1143
+ "eslint.config.cts",
1144
+ // deprecated
1145
+ ".eslintrc.js",
1146
+ ".eslintrc.cjs",
1147
+ ".eslintrc.yaml",
1148
+ ".eslintrc.yml",
1149
+ ".eslintrc.json"
1150
+ ],
1151
+ projectTypes: ["npm-package"]
1152
+ },
1153
+ // return (
1154
+ // JSON.stringify(
1155
+ // {
1156
+ // ...data,
1157
+ // Disable: {
1158
+ // ...data.Disable,
1159
+ // },
1160
+ // },
1161
+ // null,
1162
+ // 2
1163
+ // ) + "\n"
1164
+ // );
1165
+ // },
1166
+ // },
1167
+ "hadolint.yaml": {
1168
+ content: (context) => {
1169
+ const data = YAML.parse(context.existingContent || "");
1170
+ return YAML.stringify({
1171
+ ...data
1172
+ });
1173
+ },
1174
+ otherFileNameList: [".hadolint.yaml", "hadolint.yaml", ".config/hadolint.yaml", ".hadolint/hadolint.yaml"],
1175
+ rootOnly: true
1176
+ },
1177
+ "knip.config.ts": {
1178
+ content: () => {
1179
+ return [
1180
+ `import type { KnipConfig } from "${facts().env.DATAMITSU_PACKAGE_NAME}/knip";`,
1181
+ "",
1182
+ `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/knip";`,
1183
+ "",
1184
+ `const internalConfig: KnipConfig = { ...config };`,
1185
+ "",
1186
+ "export default internalConfig;",
1187
+ ""
1188
+ ].join("\n");
1189
+ },
1190
+ otherFileNameList: [
1191
+ "knip.json",
1192
+ "knip.jsonc",
1193
+ ".knip.json",
1194
+ ".knip.jsonc",
1195
+ "knip.ts",
1196
+ "knip.js",
1197
+ "knip.config.ts",
1198
+ "knip.config.js"
1199
+ ],
1200
+ projectTypes: ["npm-package"],
1201
+ rootOnly: true
1202
+ },
1203
+ "lefthook.yaml": {
1204
+ content: (context) => {
1205
+ const existing = YAML.parse(context.existingContent || "");
1206
+ return YAML.stringify({
1207
+ ...existing,
1208
+ "commit-msg": {
1209
+ commands: {
1210
+ "lint commit message": {
1211
+ run: `${facts().binaryCommand} exec commitlint -- --edit {1}`
1212
+ }
1213
+ }
1214
+ },
1215
+ "pre-commit": {
1216
+ commands: {
1217
+ ...existing?.["pre-commit"]?.commands,
1218
+ [`${facts().packageName}-fix`]: {
1219
+ priority: 0,
1220
+ run: `${facts().binaryCommand} fix {staged_files}`,
1221
+ stage_fixed: true
1222
+ },
1223
+ [`${facts().packageName}-lint`]: {
1224
+ priority: 1,
1225
+ run: `${facts().binaryCommand} lint`
1226
+ }
1227
+ }
1228
+ }
1229
+ });
1230
+ },
1231
+ otherFileNameList: [
1232
+ ".lefthook.yml",
1233
+ "lefthook.yaml",
1234
+ ".config/lefthook.yml",
1235
+ ".lefthook.yaml",
1236
+ ".config/lefthook.yaml",
1237
+ "lefthook.toml",
1238
+ ".lefthook.toml",
1239
+ ".config/lefthook.toml",
1240
+ "lefthook.json",
1241
+ ".lefthook.json",
1242
+ ".config/lefthook.json"
1243
+ ],
1244
+ rootOnly: true
1245
+ },
1246
+ // ".editorconfig-checker.json": {
1247
+ // rootOnly: true,
1248
+ // content: (context) => {
1249
+ // const data = JSON.parse(context.existingContent || "{}");
1250
+ "pnpm-workspace.yaml": {
1251
+ content: (context) => {
1252
+ const existing = YAML.parse(context.existingContent || "");
1253
+ const config = {
1254
+ ...existing,
1255
+ // registry: "https://registry.npmjs.org/",
1256
+ // "@jsr:registry": "https://npm.jsr.io/",
1257
+ // dedupePeerDependents: true,
1258
+ // minimumReleaseAge: 1440, // minutes
1259
+ // minimumReleaseAgeExclude:[
1260
+ // "react"
1261
+ // ],
1262
+ // preferFrozenLockfile:true,
1263
+ // autoInstallPeers:true,
1264
+ // strictPeerDependencies: true,
1265
+ // ignoreScripts: true,
1266
+ // ignoreDepScripts: true,
1267
+ // nodeOptions: "${NODE_OPTIONS:- } --experimental-vm-modules",
1268
+ // verifyDepsBeforeRun:true,
1269
+ // strictDepBuilds:true,
1270
+ // // useNodeVersion
1271
+ // // linkWorkspacePackages: true,
1272
+ // saveWorkspaceProtocol:"rolling"
1273
+ enableGlobalVirtualStore: true,
1274
+ enablePrePostScripts: false,
1275
+ hoistPattern: [],
1276
+ ignorePatchFailures: false,
1277
+ optimisticRepeatInstall: true,
1278
+ resolutionMode: "lowest-direct",
1279
+ verifyDepsBeforeRun: "install"
1280
+ };
1281
+ if (config.hoistPattern?.length === 1 && config.hoistPattern[0] === "*") {
1282
+ config.hoistPattern = [];
1283
+ }
1284
+ return YAML.stringify(config);
1285
+ },
1286
+ projectTypes: ["pnpm-package"],
1287
+ rootOnly: true
1288
+ },
1289
+ // return INI.stringify(data);
1290
+ // },
1291
+ // },
1292
+ "prettier.config.ts": {
1293
+ content: () => {
1294
+ return [
1295
+ `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/prettier";`,
1296
+ "",
1297
+ "export default config;",
1298
+ ""
1299
+ ].join("\n");
1300
+ },
1301
+ otherFileNameList: [
1302
+ ".prettierrc",
1303
+ ".prettierrc.json,",
1304
+ ".prettierrc.yml,",
1305
+ ".prettierrc.yaml,",
1306
+ ".prettierrc.json5",
1307
+ ".prettierrc.js,",
1308
+ "prettier.config.js,",
1309
+ ".prettierrc.ts,",
1310
+ "prettier.config.ts",
1311
+ ".prettierrc.mjs,",
1312
+ "prettier.config.mjs,",
1313
+ ".prettierrc.mts,",
1314
+ "prettier.config.mts",
1315
+ ".prettierrc.cjs,",
1316
+ "prettier.config.cjs,",
1317
+ ".prettierrc.cts,",
1318
+ "prettier.config.cts",
1319
+ ".prettierrc.toml"
1320
+ ],
1321
+ projectTypes: ["npm-package"]
1322
+ },
1323
+ "syncpack.config.ts": {
1324
+ content: () => {
1325
+ return [
1326
+ `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/syncpack";`,
1327
+ "",
1328
+ "export default config;",
1329
+ ""
1330
+ ].join("\n");
1331
+ },
1332
+ otherFileNameList: [
1333
+ ".syncpackrc",
1334
+ ".syncpackrc.json",
1335
+ ".syncpackrc.yaml",
1336
+ ".syncpackrc.yml",
1337
+ ".syncpackrc.js",
1338
+ ".syncpackrc.ts",
1339
+ ".syncpackrc.mjs",
1340
+ ".syncpackrc.cjs",
1341
+ "syncpack.config.js",
1342
+ "syncpack.config.cjs",
1343
+ "syncpack.config.ts",
1344
+ "syncpack.config.mjs"
1345
+ ],
1346
+ projectTypes: ["npm-package"],
1347
+ rootOnly: true
1348
+ }
1349
+ };
1350
+ var initCommands = {
1351
+ lefthook: {
1352
+ args: ["install", "--force"],
1353
+ command: "lefthook",
1354
+ description: "Install git hooks with lefthook",
1355
+ when: "lefthook.yaml"
1356
+ }
1357
+ };
1358
+
1359
+ // src/datamitsu-config/hooks.ts
1360
+ var gitHooks = {
1361
+ enabled: false,
1362
+ hooks: {}
1363
+ };
1364
+
1365
+ // src/datamitsu-config/project.ts
1366
+ var projectTypes = {
1367
+ "golang-package": {
1368
+ description: "Go module",
1369
+ markers: ["go.mod"]
1370
+ },
1371
+ "npm-package": {
1372
+ description: "Node.js/npm project",
1373
+ markers: ["package.json"]
1374
+ },
1375
+ "pnpm-package": {
1376
+ description: "pnpm project",
1377
+ markers: ["pnpm-lock.yaml"]
1378
+ },
1379
+ "terraform-project": {
1380
+ description: "Terraform infrastructure",
1381
+ markers: ["*.tf"]
1382
+ },
1383
+ "typst-project": {
1384
+ description: "Typst document",
1385
+ markers: ["*.typ"]
1386
+ }
1387
+ };
1388
+
1389
+ // src/datamitsu-config/constants.ts
1390
+ var indentSettings = {
1391
+ typ: {
1392
+ indentWidth: 2,
1393
+ lineWidth: 120
1394
+ }
1395
+ };
1396
+
1397
+ // src/datamitsu-config/tools.ts
1398
+ var prettierGlobs = [
1399
+ "**/*.js",
1400
+ "**/*.mjs",
1401
+ "**/*.cjs",
1402
+ "**/*.d.ts",
1403
+ "**/*.ts",
1404
+ "**/*.mts",
1405
+ "**/*.cts",
1406
+ "**/*.json",
1407
+ "**/*.yaml",
1408
+ "**/*.md"
1409
+ ];
1410
+ var eslintGlobs = ["**/*.js", "**/*.mjs", "**/*.cjs", "**/*.ts", "**/*.mts", "**/*.cts"];
1411
+ var toolsConfig = {
1412
+ eslint: {
1413
+ name: "Eslint",
1414
+ operations: {
1415
+ fix: {
1416
+ args: ["--fix", "--quiet", "--config", tools.Path.join(facts().cwd, "eslint.config.ts"), "{file}"],
1417
+ command: "eslint",
1418
+ globs: eslintGlobs,
1419
+ mode: "per-file",
1420
+ priority: 0
1421
+ },
1422
+ lint: {
1423
+ args: ["-u", "--check", "{file}"],
1424
+ command: "prettier",
1425
+ globs: eslintGlobs,
1426
+ mode: "per-file"
1427
+ }
1428
+ },
1429
+ projectTypes: ["npm-package"]
1430
+ },
1431
+ gitleaks: {
1432
+ name: "gitleaks",
1433
+ operations: {
1434
+ lint: {
1435
+ args: ["--config", tools.Path.join(facts().cwd, ".gitleaks.toml"), "dir"],
1436
+ command: "gitleaks",
1437
+ globs: ["**/*"],
1438
+ mode: "whole-project",
1439
+ rootOnly: true
1440
+ }
1441
+ }
1442
+ },
1443
+ "golangci-lint": {
1444
+ name: "golangci-lint - Go Linter",
1445
+ operations: {
1446
+ fix: {
1447
+ args: ["run", "--fix"],
1448
+ command: "golangci-lint",
1449
+ globs: ["**/*.go"],
1450
+ mode: "whole-project",
1451
+ priority: 1,
1452
+ rootOnly: true
1453
+ },
1454
+ lint: {
1455
+ args: ["run"],
1456
+ command: "golangci-lint",
1457
+ globs: ["**/*.go"],
1458
+ mode: "whole-project",
1459
+ rootOnly: true
1460
+ }
1461
+ },
1462
+ projectTypes: ["golang-package"]
1463
+ },
1464
+ knip: {
1465
+ name: "Knip",
1466
+ operations: {
1467
+ lint: {
1468
+ args: ["--config", tools.Path.join(facts().gitRoot, "knip.config.ts")],
1469
+ command: "knip",
1470
+ globs: [],
1471
+ mode: "whole-project"
1472
+ }
1473
+ },
1474
+ projectTypes: ["npm-package"]
1475
+ },
1476
+ prettier: {
1477
+ name: "Prettier - Code Formatter",
1478
+ operations: {
1479
+ fix: {
1480
+ args: ["-u", "--write", "--config", tools.Path.join(facts().cwd, "prettier.config.ts"), "{file}"],
1481
+ command: "prettier",
1482
+ globs: prettierGlobs,
1483
+ mode: "per-file",
1484
+ priority: 1
1485
+ },
1486
+ lint: {
1487
+ args: ["-u", "--check", "{file}"],
1488
+ command: "prettier",
1489
+ globs: prettierGlobs,
1490
+ mode: "per-file"
1491
+ }
1492
+ },
1493
+ projectTypes: ["npm-package"]
1494
+ },
1495
+ // hadolint: {
1496
+ // name: "hadolint - Dockerfile Linter",
1497
+ // operations: {
1498
+ // lint: {
1499
+ // command: "hadolint",
1500
+ // args: ["-c", facts().gitRoot + "/hadolint.yaml", "--verbose", "--no-color", "{file}"],
1501
+ // mode: "per-file",
1502
+ // globs: ["**/Dockerfile", "**/Dockerfile.*", "**/*.dockerfile"],
1503
+ // },
1504
+ // },
1505
+ // },
1506
+ shellcheck: {
1507
+ name: "ShellCheck - Shell Script Linter",
1508
+ operations: {
1509
+ lint: {
1510
+ args: ["-x", "{file}"],
1511
+ command: "shellcheck",
1512
+ globs: ["**/*.sh", "**/*.bash"],
1513
+ mode: "per-file"
1514
+ }
1515
+ }
1516
+ },
1517
+ shfmt: {
1518
+ name: "shfmt - Shell Script Formatter",
1519
+ operations: {
1520
+ fix: {
1521
+ args: ["-w", "-i", "2", "-ci", "-sr", "{file}"],
1522
+ command: "shfmt",
1523
+ globs: ["**/*.sh", "**/*.bash"],
1524
+ mode: "per-file",
1525
+ priority: 0
1526
+ },
1527
+ lint: {
1528
+ args: ["-d", "-i", "2", "-ci", "-sr", "{file}"],
1529
+ command: "shfmt",
1530
+ globs: ["**/*.sh", "**/*.bash"],
1531
+ mode: "per-file"
1532
+ }
1533
+ }
1534
+ },
1535
+ "sort-package-json": {
1536
+ name: "sort-package-json",
1537
+ operations: {
1538
+ fix: {
1539
+ args: ["--quiet"],
1540
+ command: "sort-package-json",
1541
+ globs: ["**/package.json"],
1542
+ mode: "whole-project",
1543
+ priority: 200
1544
+ },
1545
+ lint: {
1546
+ args: ["--check", "--quiet"],
1547
+ command: "sort-package-json",
1548
+ globs: ["**/package.json"],
1549
+ mode: "whole-project",
1550
+ priority: 200
1551
+ }
1552
+ },
1553
+ projectTypes: ["npm-package"]
1554
+ },
1555
+ syncpack: {
1556
+ name: "syncpack",
1557
+ operations: {
1558
+ fix: {
1559
+ args: ["fix", "--config", tools.Path.join(facts().gitRoot, "syncpack.config.ts")],
1560
+ command: "syncpack",
1561
+ globs: ["**/package.json"],
1562
+ mode: "whole-project",
1563
+ priority: 0
1564
+ },
1565
+ lint: {
1566
+ args: ["lint", "--config", tools.Path.join(facts().gitRoot, "syncpack.config.ts")],
1567
+ command: "syncpack",
1568
+ globs: ["**/package.json"],
1569
+ mode: "whole-project",
1570
+ priority: 0
1571
+ }
1572
+ },
1573
+ projectTypes: ["npm-package"]
1574
+ },
1575
+ tsc: {
1576
+ name: "Tsc",
1577
+ operations: {
1578
+ lint: {
1579
+ args: ["--noEmit"],
1580
+ command: "tsc",
1581
+ globs: ["**/*.d.ts", "**/*.ts", "**/*.mts", "**/*.cts"],
1582
+ mode: "whole-project",
1583
+ priority: 2
1584
+ }
1585
+ },
1586
+ projectTypes: ["npm-package"]
1587
+ },
1588
+ // "editorconfig-checker": {
1589
+ // name: "EditorConfig Checker",
1590
+ // operations: {
1591
+ // lint: {
1592
+ // command: "editorconfig-checker",
1593
+ // args: ["-config", ".editorconfig-checker.json"],
1594
+ // mode: "whole-project",
1595
+ // globs: ["**/*"],
1596
+ // rootOnly: true,
1597
+ // },
1598
+ // },
1599
+ // },
1600
+ typstyle: {
1601
+ name: "typstyle - Typst Code Formatter",
1602
+ operations: {
1603
+ fix: {
1604
+ args: [
1605
+ "-l",
1606
+ String(indentSettings.typ?.lineWidth),
1607
+ "-t",
1608
+ String(indentSettings.typ?.indentWidth),
1609
+ "-v",
1610
+ "--inplace",
1611
+ "{file}"
1612
+ ],
1613
+ command: "typstyle",
1614
+ globs: ["**/*.typ"],
1615
+ mode: "per-file",
1616
+ priority: 0
1617
+ },
1618
+ lint: {
1619
+ args: [
1620
+ "-l",
1621
+ String(indentSettings.typ?.lineWidth),
1622
+ "-t",
1623
+ String(indentSettings.typ?.indentWidth),
1624
+ "-v",
1625
+ "--check",
1626
+ "{file}"
1627
+ ],
1628
+ command: "typstyle",
1629
+ globs: ["**/*.typ"],
1630
+ mode: "per-file"
1631
+ }
1632
+ }
1633
+ }
1634
+ };
1635
+
1636
+ // src/datamitsu-config/main.ts
1637
+ function getConfig(config) {
1638
+ const configOutput = {
1639
+ // ...config,
1640
+ apps: {
1641
+ // ...config.apps,
1642
+ ...mapOfApps
1643
+ },
1644
+ gitHooks: {
1645
+ // ...config.gitHooks,
1646
+ ...gitHooks,
1647
+ hooks: {
1648
+ // ...config.gitHooks?.hooks,
1649
+ ...gitHooks?.hooks
1650
+ }
1651
+ },
1652
+ init: {
1653
+ // ...config.init,
1654
+ ...init
1655
+ },
1656
+ initCommands: {
1657
+ // ...config.initCommands,
1658
+ ...initCommands
1659
+ },
1660
+ projectTypes: {
1661
+ // ...config.projectTypes,
1662
+ ...projectTypes
1663
+ },
1664
+ tools: {
1665
+ // ...config.tools,
1666
+ ...toolsConfig
1667
+ }
1668
+ };
1669
+ return configOutput;
1670
+ }
1671
+ globalThis.getConfig = getConfig;