@slugbugblue/trax-cli 0.12.0 → 0.13.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/.claude/settings.local.json +8 -0
- package/CHANGELOG.md +11 -0
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/eslint.config.js +24 -0
- package/package.json +7 -18
- package/src/cli.js +246 -106
- package/src/cmds/analyze.js +72 -66
- package/src/cmds/delete.js +35 -43
- package/src/cmds/help.js +54 -57
- package/src/cmds/import-export.js +149 -122
- package/src/cmds/index.js +40 -0
- package/src/cmds/list.js +92 -87
- package/src/cmds/new.js +50 -55
- package/src/cmds/notes.js +20 -18
- package/src/cmds/play-try.js +147 -106
- package/src/cmds/puzzles.js +53 -39
- package/src/cmds/select.js +22 -31
- package/src/cmds/suggest.js +28 -37
- package/src/cmds/undo.js +31 -26
- package/src/cmds/view.js +42 -51
- package/src/utils.js +1 -1
- package/src/version.js +1 -1
- package/xo.config.js +10 -0
- package/src/types.d.ts +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @slugbugblue/trax
|
|
2
2
|
|
|
3
|
+
## 0.13.0 - 2026-05-20
|
|
4
|
+
|
|
5
|
+
- Update to latest puzzles version and add defensive moves
|
|
6
|
+
- When playing a puzzle, undo now rolls back two moves
|
|
7
|
+
- Update typescript types
|
|
8
|
+
|
|
9
|
+
## 0.12.1 - 2025-12-02
|
|
10
|
+
|
|
11
|
+
- Bugfix: file read/write broken after migrating to mkdir with different
|
|
12
|
+
signature
|
|
13
|
+
|
|
3
14
|
## 0.12.0 - 2025-11-08
|
|
4
15
|
|
|
5
16
|
- Fix a rare bug that could alter player names of existing games
|
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright © 2021-
|
|
189
|
+
Copyright © 2021-2026 Chad Transtrum
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -150,7 +150,7 @@ Trax][gnutrax] for over two decades, and has a lot of expertise in this area.
|
|
|
150
150
|
|
|
151
151
|
## License
|
|
152
152
|
|
|
153
|
-
Copyright 2019-
|
|
153
|
+
Copyright 2019-2026 Chad Transtrum
|
|
154
154
|
|
|
155
155
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
156
156
|
the files in this project except in compliance with the License. You may obtain
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** ESLint flat config that mirrors XO's rules for editor integration.
|
|
2
|
+
* XO is used for pre-commit validation; this file lets ESLint-based
|
|
3
|
+
* editor plugins (e.g., nvim-lint / eslint-language-server) use the
|
|
4
|
+
* same rule set without running XO's slower wrapper.
|
|
5
|
+
* @copyright 2026
|
|
6
|
+
* @author Chad Transtrum <chad@transtrum.net>
|
|
7
|
+
*/
|
|
8
|
+
import Xo from 'xo'
|
|
9
|
+
|
|
10
|
+
const xo = new Xo({ cwd: import.meta.dirname })
|
|
11
|
+
await xo.setXoConfig()
|
|
12
|
+
xo.setEslintConfig()
|
|
13
|
+
|
|
14
|
+
const myRules = [
|
|
15
|
+
...xo.eslintConfig,
|
|
16
|
+
{ ignores: ['**/*.json'] },
|
|
17
|
+
{
|
|
18
|
+
rules: {
|
|
19
|
+
curly: ['error', 'multi-line'],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
export default myRules
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slugbugblue/trax-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Trax command line interface",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"trax",
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"bugs": "https://gitlab.com/slugbugblue/trax-cli/issues",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "Chad Transtrum <chad@transtrum.net>",
|
|
15
|
-
"types": "./src/types.d.ts",
|
|
16
15
|
"exports": {
|
|
17
16
|
".": "./src/cli.js",
|
|
18
17
|
"./utils": "./src/utils.js"
|
|
@@ -26,27 +25,27 @@
|
|
|
26
25
|
"git-add": "git add src/version.js",
|
|
27
26
|
"test": "xo",
|
|
28
27
|
"prepare": "husky",
|
|
29
|
-
"preversion": "npm test",
|
|
28
|
+
"preversion": "npm audit --audit-level=high && npm test",
|
|
30
29
|
"version": "npm run genversion ; npm run git-add",
|
|
31
30
|
"postversion": "git push && git push --tags && npm publish"
|
|
32
31
|
},
|
|
33
32
|
"dependencies": {
|
|
34
33
|
"@slugbugblue/trax": "^1.0.0",
|
|
35
|
-
"@slugbugblue/trax-analyst": "^0.
|
|
36
|
-
"@slugbugblue/trax-puzzles": "^0.
|
|
34
|
+
"@slugbugblue/trax-analyst": "^0.14.0",
|
|
35
|
+
"@slugbugblue/trax-puzzles": "^0.8.0",
|
|
37
36
|
"@slugbugblue/trax-tty": "^1.0.0",
|
|
38
|
-
"env-paths": "^
|
|
37
|
+
"env-paths": "^4.0.0",
|
|
39
38
|
"yaml": "^2.0.0-11"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"genversion": "^3.0.2",
|
|
43
42
|
"husky": "^9.0.1",
|
|
44
43
|
"prettier": "^3.2.0",
|
|
45
|
-
"xo": "^
|
|
44
|
+
"xo": "^2.0.2"
|
|
46
45
|
},
|
|
47
46
|
"type": "module",
|
|
48
47
|
"engines": {
|
|
49
|
-
"node": ">=
|
|
48
|
+
"node": ">=20"
|
|
50
49
|
},
|
|
51
50
|
"prettier": {
|
|
52
51
|
"bracketSpacing": true,
|
|
@@ -55,15 +54,5 @@
|
|
|
55
54
|
"singleQuote": true,
|
|
56
55
|
"trailingComma": "all",
|
|
57
56
|
"useTabs": false
|
|
58
|
-
},
|
|
59
|
-
"xo": {
|
|
60
|
-
"prettier": true,
|
|
61
|
-
"space": true,
|
|
62
|
-
"rules": {
|
|
63
|
-
"curly": [
|
|
64
|
-
"error",
|
|
65
|
-
"multi-line"
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
57
|
}
|
|
69
58
|
}
|