@halfagiraf/clawx 0.2.3 → 0.2.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scout-prompt.d.ts","sourceRoot":"","sources":["../../src/utils/scout-prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"scout-prompt.d.ts","sourceRoot":"","sources":["../../src/utils/scout-prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAmF/D;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAkBnE"}
|
|
@@ -49,6 +49,42 @@ Guidelines:
|
|
|
49
49
|
- Be proactive: if the user asks about "coding models", search for multiple relevant terms
|
|
50
50
|
- Format recommendations clearly with model name, quant, estimated VRAM, and key strengths
|
|
51
51
|
|
|
52
|
+
After Recommendations — Always Offer Next Steps:
|
|
53
|
+
Once you've presented your model recommendations, ALWAYS end by offering these three actions for any of the recommended models:
|
|
54
|
+
|
|
55
|
+
1. **Create an Ollama Modelfile** — Generate a complete Modelfile with the correct chat template, parameters, and stop tokens based on the model's README/docs. Write it to disk so the user can run \`ollama create <name> -f Modelfile\` immediately.
|
|
56
|
+
|
|
57
|
+
2. **Download the GGUF** — Download the GGUF file directly. Do NOT write download scripts (no PowerShell scripts, no .sh files). Instead:
|
|
58
|
+
- First check if \`huggingface-cli\` is available by running: \`huggingface-cli --version\`
|
|
59
|
+
- If available, use: \`huggingface-cli download <repo-id> <filename> --local-dir .\`
|
|
60
|
+
- If not available, use \`curl -L -o <filename> https://huggingface.co/<repo-id>/resolve/main/<filename>\`
|
|
61
|
+
- Run the download command directly in the terminal via the bash/run_shell tool
|
|
62
|
+
- ALWAYS also show the user the download command so they can run it themselves later or cancel if they don't want to download now
|
|
63
|
+
- Include the expected file size so the user knows what to expect
|
|
64
|
+
|
|
65
|
+
3. **Set up a Clawx profile** — IMPORTANT: Use the clawx CLI commands to manage profiles. NEVER write directly to config files or overwrite the user's current config. The correct workflow is:
|
|
66
|
+
- Write a profile config file to \`~/.clawx/profiles/<model-name>\` with these exact contents:
|
|
67
|
+
\`\`\`
|
|
68
|
+
# Clawx profile — <model-name>
|
|
69
|
+
CLAWDEX_PROVIDER=ollama
|
|
70
|
+
CLAWDEX_BASE_URL=http://localhost:11434/v1
|
|
71
|
+
CLAWDEX_MODEL=<ollama-model-name>
|
|
72
|
+
CLAWDEX_API_KEY=not-needed
|
|
73
|
+
CLAWDEX_THINKING_LEVEL=off
|
|
74
|
+
CLAWDEX_MAX_TOKENS=16384
|
|
75
|
+
\`\`\`
|
|
76
|
+
- Then tell the user they can switch to it with: \`clawx use <model-name>\`
|
|
77
|
+
- And switch back to their current setup with: \`clawx use <previous-profile>\`
|
|
78
|
+
- NEVER overwrite \`~/.clawx/config\` — that's the user's active config. Only write to \`~/.clawx/profiles/\`.
|
|
79
|
+
|
|
80
|
+
Present these as a numbered list like:
|
|
81
|
+
"Want me to set any of these up? I can:
|
|
82
|
+
1. Create an Ollama Modelfile for [model name]
|
|
83
|
+
2. Download the [quant] GGUF (~X GB)
|
|
84
|
+
3. Set up a Clawx profile so you can \`clawx use [name]\` to start coding with it
|
|
85
|
+
|
|
86
|
+
Just pick a model and I'll do all three, or tell me which steps you want."
|
|
87
|
+
|
|
52
88
|
You are conversational and helpful. Research thoroughly before making recommendations.`;
|
|
53
89
|
}
|
|
54
90
|
export function buildScoutChatPrompt(hardware) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scout-prompt.js","sourceRoot":"","sources":["../../src/utils/scout-prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,UAAU,gBAAgB,CAAC,QAAsB;IACrD,MAAM,OAAO,GAAG;QACd,UAAU,QAAQ,CAAC,GAAG,EAAE;QACxB,WAAW,QAAQ,CAAC,IAAI,EAAE;QAC1B,iBAAiB,QAAQ,CAAC,GAAG,EAAE;QAC/B,SAAS,QAAQ,CAAC,EAAE,EAAE;QACtB,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;KACnD;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,OAAO;;;EAGP,OAAO
|
|
1
|
+
{"version":3,"file":"scout-prompt.js","sourceRoot":"","sources":["../../src/utils/scout-prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,UAAU,gBAAgB,CAAC,QAAsB;IACrD,MAAM,OAAO,GAAG;QACd,UAAU,QAAQ,CAAC,GAAG,EAAE;QACxB,WAAW,QAAQ,CAAC,IAAI,EAAE;QAC1B,iBAAiB,QAAQ,CAAC,GAAG,EAAE;QAC/B,SAAS,QAAQ,CAAC,EAAE,EAAE;QACtB,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;KACnD;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,OAAO;;;EAGP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFAoE8E,CAAC;AACxF,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,QAAsB;IACzD,MAAM,OAAO,GAAG;QACd,UAAU,QAAQ,CAAC,GAAG,EAAE;QACxB,WAAW,QAAQ,CAAC,IAAI,EAAE;QAC1B,iBAAiB,QAAQ,CAAC,GAAG,EAAE;QAC/B,SAAS,QAAQ,CAAC,EAAE,EAAE;QACtB,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;KACnD;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,OAAO;;;EAGP,OAAO;;;kFAGyE,CAAC;AACnF,CAAC"}
|