@slugbugblue/trax-cli 0.12.1 → 0.14.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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npx tsc:*)",
5
+ "Bash(npm show:*)"
6
+ ]
7
+ }
8
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @slugbugblue/trax
2
2
 
3
+ ## 0.14.0 - 2026-06-05
4
+
5
+ - Update to latest puzzles version with new defensive move format
6
+ - Change trax game export attribution
7
+ - Break out inner logic to new functions in a few complex functions
8
+
9
+ ## 0.13.0 - 2026-05-20
10
+
11
+ - Update to latest puzzles version and add defensive moves
12
+ - When playing a puzzle, undo now rolls back two moves
13
+ - Update typescript types
14
+
3
15
  ## 0.12.1 - 2025-12-02
4
16
 
5
17
  - Bugfix: file read/write broken after migrating to mkdir with different
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-2023 Chad Transtrum
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
@@ -77,7 +77,7 @@ simply `#1` at the interactive prompt.
77
77
  For ease of working at the command line, the symbols used as the last character
78
78
  of the Trax notation can optionally be replaced with letters. Use `s` for slash
79
79
  symbol (`/`), `b` for backslash (`\`), and `p` for plus (`+`). While there is no
80
- need to escape at the interactive prompt, these substitutions will be avilable
80
+ need to escape at the interactive prompt, these substitutions will be available
81
81
  there as well.
82
82
 
83
83
  ### Examples
@@ -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-2025 Chad Transtrum
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
@@ -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.12.1",
3
+ "version": "0.14.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.13.0",
36
- "@slugbugblue/trax-puzzles": "^0.5.0",
34
+ "@slugbugblue/trax-analyst": "^0.14.0",
35
+ "@slugbugblue/trax-puzzles": "^0.9.0",
37
36
  "@slugbugblue/trax-tty": "^1.0.0",
38
- "env-paths": "^3.0.0",
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": "^1.2.3"
44
+ "xo": "^2.0.2"
46
45
  },
47
46
  "type": "module",
48
47
  "engines": {
49
- "node": ">=16.15.0"
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
  }