@scm-js/cli 0.8.11 → 0.9.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/README.md CHANGED
@@ -1,19 +1,31 @@
1
1
  # @scm-js/cli
2
2
 
3
- StarCraft: Brood War maps and replays from the command line, by [scmJS](https://scmjs.dev/editor/). It installs the
4
- `scmjs` command:
3
+ StarCraft: Brood War maps, replays and bots from the command line, by [scmJS](https://scmjs.dev/editor/). It installs
4
+ the `scmjs` command, built from the editor's own code, so the two agree about every map:
5
5
 
6
6
  ```sh
7
7
  npm install -g @scm-js/cli
8
8
  scmjs info "(2)Destination.scx" # what a map or replay holds
9
9
  scmjs map check maps/*.scx # Check Map, as the editor runs it; exits 1 on errors
10
+ scmjs map dump ridge.scx # the whole map as text: git's textconv for maps
11
+ scmjs map find "Marine" maps/*.scx # Edit ▸ Find across maps
12
+ scmjs map trace ridge.scx # the triggers run in the game: which fired, which never did and why
13
+ scmjs map preview ridge.scx # the map as a picture, in the terminal or as a PNG
14
+ scmjs map play ridge.scx # a lobby on scmjs.dev/play with the map; the invite link printed
15
+ scmjs map share ridge.scx # a scmjs.dev link anyone can open a copy with (scmjs login first)
10
16
  scmjs replay info game.rep # players, races, APM, map, length
17
+ scmjs replay watch game.rep # the replay played in the terminal
18
+ scmjs replay map game.rep # the map it was played on, written out beside it
19
+ scmjs replay share game.rep # a link anyone opens to watch it in the editor (scmjs login first)
11
20
  scmjs replay open game.rep # watch it in scmJS: the desktop app, or the editor in your browser
12
- scmjs about
21
+ scmjs mcp # the map commands as an MCP server, for Claude Code and other AI tools
22
+ scmjs doctor # what this computer has for each command
13
23
  ```
14
24
 
15
25
  Or without installing it: `npx @scm-js/cli info "(2)Destination.scx"`.
16
26
 
17
- Every command has `--help` and `--json`. Needs Node.js 22.12 or newer.
27
+ Every command has `--help` and `--json`, and `-` reads a map from a pipe or writes one to it. The commands that play
28
+ the game (`map trace`, `replay watch`, `bot run`) use your own installation of StarCraft. Needs Node.js 22.12 or
29
+ newer.
18
30
 
19
31
  The guide is at [docs.scmjs.dev/cli](https://docs.scmjs.dev/cli/). MIT licence.
@@ -1,4 +1,4 @@
1
- Third-party notices for scmjs 0.8.11
1
+ Third-party notices for scmjs 0.9.1
2
2
 
3
3
  scmjs is MIT-licensed (LICENSE). It is built into one file from scmJS's own code and the
4
4
  packages below, whose license texts this file carries. Who wrote what, and where the
@@ -7,6 +7,32 @@ https://github.com/scm-js/scm-js/blob/main/ATTRIBUTION.md
7
7
 
8
8
  No StarCraft game data is included.
9
9
 
10
+ ==============================================================================
11
+ @modelcontextprotocol/sdk 1.32.2
12
+ ==============================================================================
13
+
14
+ MIT License
15
+
16
+ Copyright (c) 2024 Anthropic, PBC
17
+
18
+ Permission is hereby granted, free of charge, to any person obtaining a copy
19
+ of this software and associated documentation files (the "Software"), to deal
20
+ in the Software without restriction, including without limitation the rights
21
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22
+ copies of the Software, and to permit persons to whom the Software is
23
+ furnished to do so, subject to the following conditions:
24
+
25
+ The above copyright notice and this permission notice shall be included in all
26
+ copies or substantial portions of the Software.
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
+ SOFTWARE.
35
+
10
36
  ==============================================================================
11
37
  @scm-js/replay 1.0.0
12
38
  ==============================================================================
@@ -33,6 +59,58 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
59
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
60
  SOFTWARE.
35
61
 
62
+ ==============================================================================
63
+ ajv 8.20.0
64
+ ==============================================================================
65
+
66
+ The MIT License (MIT)
67
+
68
+ Copyright (c) 2015-2021 Evgeny Poberezkin
69
+
70
+ Permission is hereby granted, free of charge, to any person obtaining a copy
71
+ of this software and associated documentation files (the "Software"), to deal
72
+ in the Software without restriction, including without limitation the rights
73
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
74
+ copies of the Software, and to permit persons to whom the Software is
75
+ furnished to do so, subject to the following conditions:
76
+
77
+ The above copyright notice and this permission notice shall be included in all
78
+ copies or substantial portions of the Software.
79
+
80
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
81
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
82
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
83
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
84
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
85
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
86
+ SOFTWARE.
87
+
88
+ ==============================================================================
89
+ ajv-formats 3.0.1
90
+ ==============================================================================
91
+
92
+ MIT License
93
+
94
+ Copyright (c) 2020 Evgeny Poberezkin
95
+
96
+ Permission is hereby granted, free of charge, to any person obtaining a copy
97
+ of this software and associated documentation files (the "Software"), to deal
98
+ in the Software without restriction, including without limitation the rights
99
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
100
+ copies of the Software, and to permit persons to whom the Software is
101
+ furnished to do so, subject to the following conditions:
102
+
103
+ The above copyright notice and this permission notice shall be included in all
104
+ copies or substantial portions of the Software.
105
+
106
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
107
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
108
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
109
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
110
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
111
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
112
+ SOFTWARE.
113
+
36
114
  ==============================================================================
37
115
  commander 15.0.0
38
116
  ==============================================================================
@@ -60,6 +138,67 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
60
138
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
61
139
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
62
140
 
141
+ ==============================================================================
142
+ fast-deep-equal 3.1.3
143
+ ==============================================================================
144
+
145
+ MIT License
146
+
147
+ Copyright (c) 2017 Evgeny Poberezkin
148
+
149
+ Permission is hereby granted, free of charge, to any person obtaining a copy
150
+ of this software and associated documentation files (the "Software"), to deal
151
+ in the Software without restriction, including without limitation the rights
152
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
153
+ copies of the Software, and to permit persons to whom the Software is
154
+ furnished to do so, subject to the following conditions:
155
+
156
+ The above copyright notice and this permission notice shall be included in all
157
+ copies or substantial portions of the Software.
158
+
159
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
160
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
161
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
162
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
163
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
164
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
165
+ SOFTWARE.
166
+
167
+ ==============================================================================
168
+ fast-uri 3.1.7
169
+ ==============================================================================
170
+
171
+ Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
172
+ Copyright (c) 2021-present The Fastify team <https://github.com/fastify/fastify#team>
173
+ All rights reserved.
174
+
175
+ Redistribution and use in source and binary forms, with or without
176
+ modification, are permitted provided that the following conditions are met:
177
+ * Redistributions of source code must retain the above copyright
178
+ notice, this list of conditions and the following disclaimer.
179
+ * Redistributions in binary form must reproduce the above copyright
180
+ notice, this list of conditions and the following disclaimer in the
181
+ documentation and/or other materials provided with the distribution.
182
+ * The names of any contributors may not be used to endorse or promote
183
+ products derived from this software without specific prior written
184
+ permission.
185
+
186
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
187
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
188
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
189
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
190
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
191
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
192
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
193
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
194
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
195
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
196
+
197
+ * * *
198
+
199
+ The complete list of contributors can be found at:
200
+ - https://github.com/garycourt/uri-js/graphs/contributors
201
+
63
202
  ==============================================================================
64
203
  fflate 0.8.3
65
204
  ==============================================================================
@@ -86,6 +225,84 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
86
225
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
87
226
  SOFTWARE.
88
227
 
228
+ ==============================================================================
229
+ jotai 2.20.3
230
+ ==============================================================================
231
+
232
+ MIT License
233
+
234
+ Copyright (c) 2020 Poimandres
235
+
236
+ Permission is hereby granted, free of charge, to any person obtaining a copy
237
+ of this software and associated documentation files (the "Software"), to deal
238
+ in the Software without restriction, including without limitation the rights
239
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
240
+ copies of the Software, and to permit persons to whom the Software is
241
+ furnished to do so, subject to the following conditions:
242
+
243
+ The above copyright notice and this permission notice shall be included in all
244
+ copies or substantial portions of the Software.
245
+
246
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
247
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
248
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
249
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
250
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
251
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
252
+ SOFTWARE.
253
+
254
+ ==============================================================================
255
+ json-schema-traverse 1.0.0
256
+ ==============================================================================
257
+
258
+ MIT License
259
+
260
+ Copyright (c) 2017 Evgeny Poberezkin
261
+
262
+ Permission is hereby granted, free of charge, to any person obtaining a copy
263
+ of this software and associated documentation files (the "Software"), to deal
264
+ in the Software without restriction, including without limitation the rights
265
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
266
+ copies of the Software, and to permit persons to whom the Software is
267
+ furnished to do so, subject to the following conditions:
268
+
269
+ The above copyright notice and this permission notice shall be included in all
270
+ copies or substantial portions of the Software.
271
+
272
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
273
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
274
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
275
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
276
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
277
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
278
+ SOFTWARE.
279
+
280
+ ==============================================================================
281
+ kascade 0.1.1
282
+ ==============================================================================
283
+
284
+ MIT License
285
+
286
+ Copyright (c) 2026 Jeany
287
+
288
+ Permission is hereby granted, free of charge, to any person obtaining a copy
289
+ of this software and associated documentation files (the "Software"), to deal
290
+ in the Software without restriction, including without limitation the rights
291
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
292
+ copies of the Software, and to permit persons to whom the Software is
293
+ furnished to do so, subject to the following conditions:
294
+
295
+ The above copyright notice and this permission notice shall be included in all
296
+ copies or substantial portions of the Software.
297
+
298
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
299
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
300
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
301
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
302
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
303
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
304
+ SOFTWARE.
305
+
89
306
  ==============================================================================
90
307
  mopaq 1.6.2
91
308
  ==============================================================================
@@ -131,3 +348,75 @@ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
131
348
  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
132
349
  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
133
350
  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
351
+
352
+ ==============================================================================
353
+ react 19.2.8
354
+ ==============================================================================
355
+
356
+ MIT License
357
+
358
+ Copyright (c) Meta Platforms, Inc. and affiliates.
359
+
360
+ Permission is hereby granted, free of charge, to any person obtaining a copy
361
+ of this software and associated documentation files (the "Software"), to deal
362
+ in the Software without restriction, including without limitation the rights
363
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
364
+ copies of the Software, and to permit persons to whom the Software is
365
+ furnished to do so, subject to the following conditions:
366
+
367
+ The above copyright notice and this permission notice shall be included in all
368
+ copies or substantial portions of the Software.
369
+
370
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
371
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
372
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
373
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
374
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
375
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
376
+ SOFTWARE.
377
+
378
+ ==============================================================================
379
+ zod 4.6.7
380
+ ==============================================================================
381
+
382
+ MIT License
383
+
384
+ Copyright (c) 2025 Colin McDonnell
385
+
386
+ Permission is hereby granted, free of charge, to any person obtaining a copy
387
+ of this software and associated documentation files (the "Software"), to deal
388
+ in the Software without restriction, including without limitation the rights
389
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
390
+ copies of the Software, and to permit persons to whom the Software is
391
+ furnished to do so, subject to the following conditions:
392
+
393
+ The above copyright notice and this permission notice shall be included in all
394
+ copies or substantial portions of the Software.
395
+
396
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
397
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
398
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
399
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
400
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
401
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
402
+ SOFTWARE.
403
+
404
+ ==============================================================================
405
+ zod-to-json-schema 3.25.2
406
+ ==============================================================================
407
+
408
+ ISC License
409
+
410
+ Copyright (c) 2020, Stefan Terdell
411
+
412
+ Permission to use, copy, modify, and/or distribute this software for any
413
+ purpose with or without fee is hereby granted, provided that the above
414
+ copyright notice and this permission notice appear in all copies.
415
+
416
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
417
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
418
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
419
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
420
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
421
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
422
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.