@jutge.org/toolkit 4.2.0 → 4.2.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.
@@ -247,7 +247,18 @@ Before we dive into configuration, it's important to know how to get help:
247
247
 
248
248
  Add `--help` to any command to see detailed information about its options and usage.
249
249
 
250
- 3. **View information about the toolkit:**
250
+ 3. **Get help using JutgeAI:**
251
+
252
+ You can ask questions about the toolkit in human language using the `ask` command and get answers generated by JutgeAI and formatted in arkdown:
253
+
254
+ ```bash
255
+ jtk ask "How to create a new problem?"
256
+ jtk ask "Com puc crear un problema nou?" --model "google/gemini-2.5-flash-lite"
257
+ ```
258
+
259
+ For this to work, you need to have set up an AI API key (see "Setting Up AI Features" below).
260
+
261
+ 4. **View information about the toolkit:**
251
262
 
252
263
  ```bash
253
264
  jtk about
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.0",
4
+ "version": "4.2.1",
5
5
  "homepage": "https://jutge.org",
6
6
  "author": {
7
7
  "name": "Jutge.org",
package/toolkit/ask.ts CHANGED
@@ -14,10 +14,7 @@ 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
- if (!question || question.trim().length === 0) {
18
- askCmd.help()
19
- return
20
- }
17
+ console.log()
21
18
 
22
19
  const systemPrompt = await readTextInDir(join(projectDir(), 'assets', 'prompts', 'ask'), 'ask.md')
23
20
 
@@ -26,7 +23,7 @@ export const askCmd = new Command('ask')
26
23
 
27
24
  const answer = await complete(model, systemPrompt, fullPrompt)
28
25
  await tui.markdown(answer)
29
- tui.warning(`This answer was generated by JutgeAI using model (${model}).`)
26
+ tui.warning(`This answer was generated by JutgeAI using ${model} in good faith.`)
30
27
  })
31
28
 
32
29
  export async function loadDocumentation(): Promise<string> {