@halfagiraf/clawx 0.1.17 → 0.1.18

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.
@@ -6,9 +6,9 @@
6
6
  */
7
7
  export function buildSystemPrompt(config) {
8
8
  const sshSection = Object.keys(config.sshTargets).length > 0
9
- ? `\n\nSSH Targets available:\n${Object.entries(config.sshTargets)
10
- .map(([name, t]) => `- "${name}": ${t.username}@${t.host}${t.port ? `:${t.port}` : ""}`)
11
- .join("\n")}`
9
+ ? `\n\nSSH Targets (use the ssh_run tool with these target names — do NOT use bash to run ssh manually):\n${Object.entries(config.sshTargets)
10
+ .map(([name, t]) => `- target="${name}": ${t.username}@${t.host}${t.port ? `:${t.port}` : ""}`)
11
+ .join("\n")}\nWhen the user asks to SSH into a machine or mentions a target name, ALWAYS use the ssh_run tool, never raw ssh commands.`
12
12
  : "";
13
13
  return `You are Clawx, a coding and execution agent. You help users build software by creating files, writing code, running commands, and iterating based on results.
14
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../src/utils/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,UAAU,iBAAiB,CAAC,MAAmB;IACnD,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC;QAC1D,CAAC,CAAC,+BAA+B,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC;aAC7D,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAsB,EAAE,EAAE,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;aAC5G,IAAI,CAAC,IAAI,CAAC,EAAE;QACjB,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;;;uBAGc,MAAM,CAAC,OAAO;cACvB,OAAO,CAAC,QAAQ;WACnB,MAAM,CAAC,KAAK,GAAG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BlC,MAAM,CAAC,YAAY,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../src/utils/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,UAAU,iBAAiB,CAAC,MAAmB;IACnD,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC;QAC1D,CAAC,CAAC,0GAA0G,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC;aACxI,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAsB,EAAE,EAAE,CAAC,aAAa,IAAI,MAAM,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;aACnH,IAAI,CAAC,IAAI,CAAC,4HAA4H;QAC3I,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;;;uBAGc,MAAM,CAAC,OAAO;cACvB,OAAO,CAAC,QAAQ;WACnB,MAAM,CAAC,KAAK,GAAG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BlC,MAAM,CAAC,YAAY,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;AACrC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halfagiraf/clawx",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Terminal-first coding agent — runs locally with Ollama, DeepSeek, OpenAI, or any OpenAI-compatible endpoint",
5
5
  "type": "module",
6
6
  "bin": {