@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.
- package/assets/prompts/ask/ask.md +2 -0
- package/dist/index.js +295 -295
- package/docs/getting-started-guide.md +12 -1
- package/package.json +1 -1
- package/toolkit/ask.ts +2 -5
|
@@ -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. **
|
|
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
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
|
-
|
|
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
|
|
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> {
|