aurix-ai 2.9.0 → 2.9.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/agent/Context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAIjD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/agent/Context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAIjD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,CAib5E"}
|
package/dist/agent/Context.js
CHANGED
|
@@ -34,30 +34,39 @@ export function buildSystemPrompt(config, tools) {
|
|
|
34
34
|
// (which caused the user's "File not found - PROVIDEDEPTH / NAME" errors when the agent
|
|
35
35
|
// invoked `find` with GNU flags on Windows' `find.exe`).
|
|
36
36
|
if (platform === 'win32') {
|
|
37
|
-
sections.push(`# Platform: Windows —
|
|
38
|
-
The user is on Windows. Use Windows-compatible commands ONLY.
|
|
37
|
+
sections.push(`# Platform: Windows — ABSOLUTE LAW
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
|---|---|---|
|
|
42
|
-
| List files | \`ls -la\`, \`ls -R\` | \`dir\`, \`dir /s\` |
|
|
43
|
-
| Find files by name | \`find . -name "*.ts"\` | \`dir /s /b *.ts\` or PowerShell \`Get-ChildItem -Recurse -Filter *.ts\` |
|
|
44
|
-
| Search file contents | \`grep -r "foo"\` | \`findstr /s /i "foo" *.ts\` or PowerShell \`Select-String -Path *.ts -Pattern foo -Recurse\` |
|
|
45
|
-
| Copy file | \`cp src dst\` | \`copy src dst\` or \`xcopy\` |
|
|
46
|
-
| Move/rename | \`mv a b\` | \`move a b\` or \`ren a b\` |
|
|
47
|
-
| Delete | \`rm -rf\` | \`rmdir /s /q\` (dirs) or \`del /q\` (files) |
|
|
48
|
-
| Env vars | \`$HOME\`, \`echo $PATH\` | \`%USERPROFILE%\`, \`echo %PATH%\` (cmd) or \`$env:USERPROFILE\` (PowerShell) |
|
|
49
|
-
| Path separator | \`/\` | \`\\\` (but most tools accept \`/\`) |
|
|
50
|
-
| Check if command exists | \`which foo\` | \`where foo\` |
|
|
51
|
-
| Print file | \`cat file\` | \`type file\` |
|
|
52
|
-
| Pipe pager | \`| less\` | \`| more\` |
|
|
39
|
+
The user is on **Windows**. Linux/Unix commands WILL FAIL or produce wrong results.
|
|
53
40
|
|
|
54
|
-
|
|
55
|
-
- \`
|
|
56
|
-
- \`
|
|
57
|
-
- \`
|
|
58
|
-
- \`
|
|
41
|
+
## Banned commands on Windows (these WILL break):
|
|
42
|
+
- \`find\` — Windows \`find.exe\` searches FILE CONTENT, not filenames. \`find . -name\` becomes "search current dir for text '. -name'" → "Access denied" or "File not found" spam.
|
|
43
|
+
- \`ls -la\`, \`ls -R\` — \`ls\` is not a Windows command. Use \`dir\`.
|
|
44
|
+
- \`grep -r\` — not available. Use \`findstr /s /i\` or PowerShell \`Select-String -Recurse\`.
|
|
45
|
+
- \`which\` — use \`where\`.
|
|
46
|
+
- \`cat\` — use \`type\`.
|
|
47
|
+
- \`cp\`, \`mv\`, \`rm\` — use \`copy\`, \`move\`, \`del\`/\`rmdir\`.
|
|
48
|
+
- \`$HOME\`, \`echo $PATH\` — use \`%USERPROFILE%\`, \`echo %PATH%\` (cmd) or \`$env:USERPROFILE\` (PowerShell).
|
|
59
49
|
|
|
60
|
-
|
|
50
|
+
## Command translation table:
|
|
51
|
+
| Task | WRONG | RIGHT |
|
|
52
|
+
|---|---|---|
|
|
53
|
+
| List files | \`ls -la\` | \`dir\` |
|
|
54
|
+
| Recursive find | \`find . -name "*.ts"\` | \`dir /s /b *.ts\` or \`Get-ChildItem -Recurse -Filter *.ts\` |
|
|
55
|
+
| Search content | \`grep -r "foo"\` | \`findstr /s /i "foo" *.ts\` |
|
|
56
|
+
| Check command | \`which foo\` | \`where foo\` |
|
|
57
|
+
| Print file | \`cat file\` | \`type file\` |
|
|
58
|
+
| Path separator | \`/\` | \`\\\` (or \`/\` — most tools accept both) |
|
|
59
|
+
| Env vars | \`$HOME\` | \`%USERPROFILE%\` |
|
|
60
|
+
|
|
61
|
+
## MANDATORY: Use dedicated tools instead of shelling out
|
|
62
|
+
NEVER run \`terminal\` commands for tasks that have a dedicated tool:
|
|
63
|
+
- File search → \`search_files\` (uses ripgrep if available, falls back to findstr)
|
|
64
|
+
- Read file → \`read_file\`
|
|
65
|
+
- Write/edit file → \`write_file\` / \`file_edit\`
|
|
66
|
+
- Find files by name → \`glob\`
|
|
67
|
+
- Directory listing → \`terminal\` with \`dir\` (NOT \`ls\`)
|
|
68
|
+
|
|
69
|
+
If you catch yourself typing \`find\`, \`grep\`, \`ls\`, \`cat\` — STOP and use the dedicated tool instead. Violating this wastes the user's time with "access denied" spam.`);
|
|
61
70
|
}
|
|
62
71
|
else if (platform === 'darwin') {
|
|
63
72
|
sections.push(`# Platform: macOS — command reference
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.js","sourceRoot":"","sources":["../../src/agent/Context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AAGpB,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,UAAU,iBAAiB,CAAC,MAAmB,EAAE,KAAa;IAClE,IAAI,MAAM,CAAC,YAAY;QAAE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