@jutge.org/toolkit 4.2.22 → 4.2.24
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/assets/problems/games/the-walking-dead.pbm/README.md +12 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc/Makefile +6 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc/api.tex +246 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc/defs.tex +2 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc/main.tex +63 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc/programming.tex +452 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc/rules.tex +222 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc/screenshot.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc/tips.tex +81 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc/twd.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc/viewer.tex +41 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc-eng/Makefile +6 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc-eng/api.tex +246 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc-eng/defs.tex +2 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc-eng/main.tex +63 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc-eng/programming.tex +176 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc-eng/rules.tex +194 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc-eng/screenshot.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc-eng/tips.tex +85 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc-eng/twd.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Doc-eng/viewer.tex +36 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/AIDummy.o.Linux64 +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/AIDummy.o.Linux64.Debug +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/AIDummy.o.MacOS +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/AIDummy.o.MacOS.ARM +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/AIDummy.o.MacOS.ARM.Debug +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/AIDummy.o.MacOS.Debug +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/Board.o.Linux64 +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/Board.o.Linux64.Debug +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/Board.o.MacOS +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/Board.o.MacOS.ARM +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/Board.o.MacOS.ARM.Debug +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Obj/Board.o.MacOS.Debug +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/AIDemo.cc +89 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/AIDummy.cc +202 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/AINull.cc +37 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Action.cc +34 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Action.hh +107 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Board.cc +975 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Board.hh +287 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Defs.hh +2 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Game.cc +55 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Game.hh +23 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Info.cc +174 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Info.hh +129 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Main.cc +83 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Makefile +56 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Player.cc +66 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Player.hh +63 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/README.txt +9 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Random.cc +3 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Random.hh +88 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Registry.cc +28 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Registry.hh +42 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/SecGame.cc +368 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/SecGame.hh +90 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/SecMain.cc +99 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Settings.cc +67 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Settings.hh +175 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/State.cc +3 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/State.hh +188 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Structs.cc +3 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Structs.hh +377 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Utils.cc +3 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/Utils.hh +77 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/default-fixed.cnf +120 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Runner/default.cnf +17 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/css/ui-lightness/jquery-ui-1.8.18.custom.css +310 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/help.html +18 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/img/but_close.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/img/but_end.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/img/but_help.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/img/but_pause.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/img/but_play.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/img/but_refresh.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/img/but_start.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/img/logo.png +0 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/js/jquery-1.7.1.min.js +4 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/js/jquery-ui-1.8.18.custom.min.js +49 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/sample.out +52807 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/viewer.html +118 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/viewer.js +846 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/Viewer/viewer.sh +28 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/handler.yml +6 -0
- package/assets/problems/games/the-walking-dead.pbm/ca/problem.ca.yml +3 -0
- package/assets/prompts/creators/create-solution.tpl.txt +15 -8
- package/assets/prompts/proglangs/cc.md +6 -2
- package/assets/prompts/proglangs/py.md +10 -6
- package/dist/index.js +370 -366
- package/docs/getting-started-guide.md +1 -1
- package/docs/install-linux.md +1 -1
- package/docs/install-macos.md +1 -1
- package/docs/install-windows.md +1 -1
- package/package.json +11 -11
- package/toolkit/ask.ts +0 -2
- package/toolkit/doctor.ts +1 -1
- package/toolkit/make.ts +2 -2
|
@@ -278,4 +278,4 @@ For platform-specific troubleshooting, refer to your installation guide.
|
|
|
278
278
|
|
|
279
279
|
---
|
|
280
280
|
|
|
281
|
-
You're now ready to start creating problems with Jutge Toolkit! If you have questions or need help, don't hesitate to consult the documentation, use the `ask` command or reach out to the community.
|
|
281
|
+
You're now ready to start creating problems with Jutge Toolkit! If you have questions or need help, don't hesitate to consult the documentation, use the `ask` command or reach out to the community.
|
package/docs/install-linux.md
CHANGED
|
@@ -104,4 +104,4 @@ If you want to use JutgeAI features to generate problems and content, you need t
|
|
|
104
104
|
|
|
105
105
|
- You may need to add execution permissions to Bun's installation directory
|
|
106
106
|
|
|
107
|
-
You're ready to use Jutge Toolkit on Linux!
|
|
107
|
+
You're ready to use Jutge Toolkit on Linux!
|
package/docs/install-macos.md
CHANGED
|
@@ -108,4 +108,4 @@ If you want to use JutgeAI features to generate problems and content, you need t
|
|
|
108
108
|
|
|
109
109
|
- You may need to add execution permissions to Bun's installation directory
|
|
110
110
|
|
|
111
|
-
You're ready to use Jutge Toolkit on macOS!
|
|
111
|
+
You're ready to use Jutge Toolkit on macOS!
|
package/docs/install-windows.md
CHANGED
|
@@ -96,4 +96,4 @@ If you want to use JutgeAI features to generate problems and content, you need t
|
|
|
96
96
|
- Make sure you have a complete LaTeX distribution installed
|
|
97
97
|
- Ensure MiKTeX can install packages automatically
|
|
98
98
|
|
|
99
|
-
You're ready to use Jutge Toolkit on Windows!
|
|
99
|
+
You're ready to use Jutge Toolkit on Windows!
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jutge.org/toolkit",
|
|
3
3
|
"description": "Toolkit to prepare problems for Jutge.org",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.24",
|
|
5
5
|
"homepage": "https://jutge.org",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jutge.org",
|
|
@@ -67,41 +67,41 @@
|
|
|
67
67
|
"@inquirer/prompts": "^8.2.0",
|
|
68
68
|
"archiver": "^7.0.1",
|
|
69
69
|
"boxen": "^8.0.1",
|
|
70
|
-
"bun-types": "^1.3.
|
|
70
|
+
"bun-types": "^1.3.7",
|
|
71
71
|
"chalk": "^5.6.2",
|
|
72
72
|
"cli-highlight": "^2.1.11",
|
|
73
73
|
"commander": "^14.0.2",
|
|
74
74
|
"dayjs": "^1.11.19",
|
|
75
|
-
"env-paths": "^
|
|
75
|
+
"env-paths": "^4.0.0",
|
|
76
76
|
"eslint": "^9.39.2",
|
|
77
77
|
"execa": "^9.6.1",
|
|
78
78
|
"gpt-tokenizer": "^3.4.0",
|
|
79
79
|
"handlebars": "^4.7.8",
|
|
80
80
|
"image-size": "^2.0.2",
|
|
81
81
|
"inquirer-checkbox-plus-plus": "^1.1.1",
|
|
82
|
-
"multi-llm-ts": "^
|
|
82
|
+
"multi-llm-ts": "^5.0.1",
|
|
83
83
|
"nanoid": "^5.1.6",
|
|
84
|
-
"
|
|
85
|
-
"
|
|
84
|
+
"open": "^11.0.0",
|
|
85
|
+
"openai": "^6.17.0",
|
|
86
|
+
"ora": "^9.1.0",
|
|
86
87
|
"pretty-bytes": "^7.1.0",
|
|
87
88
|
"pretty-ms": "^9.3.0",
|
|
88
89
|
"radash": "^12.1.1",
|
|
89
90
|
"semver": "^7.7.3",
|
|
90
91
|
"sharp": "^0.34.5",
|
|
91
|
-
"terminal-image": "^4.1.0",
|
|
92
92
|
"terminal-link": "^5.0.0",
|
|
93
93
|
"tree-node-cli": "^1.6.0",
|
|
94
94
|
"yaml": "^2.8.2",
|
|
95
|
-
"zod": "^4.3.
|
|
95
|
+
"zod": "^4.3.6",
|
|
96
96
|
"zod-package-json": "^2.1.0",
|
|
97
97
|
"zod-validation-error": "^5.0.0"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"prettier": "^3.
|
|
101
|
-
"typescript-eslint": "^8.
|
|
100
|
+
"prettier": "^3.8.1",
|
|
101
|
+
"typescript-eslint": "^8.54.0",
|
|
102
102
|
"@types/archiver": "^7.0.0",
|
|
103
103
|
"@types/image-size": "^0.8.0",
|
|
104
|
-
"@types/node": "^25.0
|
|
104
|
+
"@types/node": "^25.1.0",
|
|
105
105
|
"@types/ora": "^3.2.0",
|
|
106
106
|
"@types/semver": "^7.7.1"
|
|
107
107
|
},
|
package/toolkit/ask.ts
CHANGED
|
@@ -14,8 +14,6 @@ export const askCmd = new Command('ask')
|
|
|
14
14
|
.option('-m, --model <model>', 'AI model to use', settings.defaultModel)
|
|
15
15
|
|
|
16
16
|
.action(async (question, { model }) => {
|
|
17
|
-
console.log()
|
|
18
|
-
|
|
19
17
|
const systemPrompt = await readTextInDir(join(projectDir(), 'assets', 'prompts', 'ask'), 'ask.md')
|
|
20
18
|
|
|
21
19
|
const docs = await loadDocumentation() // Load your markdown files
|
package/toolkit/doctor.ts
CHANGED
|
@@ -6,7 +6,7 @@ export const doctorCmd = new Command('doctor')
|
|
|
6
6
|
.description('Diagnose status of the environment')
|
|
7
7
|
|
|
8
8
|
.action(async () => {
|
|
9
|
-
await tui.section('
|
|
9
|
+
await tui.section('Diagnosing environment', async () => {
|
|
10
10
|
await tui.section('Checking Python3 installation', doc.checkPython3)
|
|
11
11
|
await tui.section('Checking C/C++ installation', doc.checkGCC)
|
|
12
12
|
await tui.section('Checking Haskell installation', doc.checkHaskell)
|
package/toolkit/make.ts
CHANGED
|
@@ -25,7 +25,7 @@ export const makeCmd = new Command('make')
|
|
|
25
25
|
throw new Error('Tasks must be one of: all, info, exe, cor, pdf, txt, md, html')
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
tui.print()
|
|
29
29
|
await tui.image(join(projectDir(), 'assets', 'images', 'jutge-toolkit.png'), 8, 4)
|
|
30
30
|
|
|
31
31
|
const errors: Record<string, string> = {} // directory -> error message
|
|
@@ -74,7 +74,7 @@ export const makeCmd = new Command('make')
|
|
|
74
74
|
throw error
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
tui.print()
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
tui.title('Summary')
|