@pikaa-ai/pikaa 0.3.18 → 0.3.19

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/dist/cli.js CHANGED
@@ -742,9 +742,11 @@ async function captureWorldState(cwd) {
742
742
  };
743
743
  }
744
744
  function formatWorldStatePrompt(state) {
745
+ const isWindows = process.platform === "win32";
746
+ const platformNote = isWindows ? `Platform: Windows (${state.os}). Shell is cmd.exe / PowerShell. POSIX commands (grep, find, cat, sed, awk) are NOT supported in shell. ALWAYS use native grep_search, find_files, and read_file tools.` : `Platform: ${state.os}`;
745
747
  const parts = [
746
748
  `Current Working Directory: ${state.cwd}`,
747
- `Platform: ${state.os}`
749
+ platformNote
748
750
  ];
749
751
  if (state.gitBranch) {
750
752
  parts.push(`Git Branch: ${state.gitBranch}`);
@@ -6429,7 +6431,7 @@ function parsePatch(oldSrc, newSrc, contextLines = 3) {
6429
6431
  // package.json
6430
6432
  var package_default = {
6431
6433
  name: "@pikaa-ai/pikaa",
6432
- version: "0.3.18",
6434
+ version: "0.3.19",
6433
6435
  description: "PIKAA CLI - AI coding agent that runs locally in your terminal.",
6434
6436
  main: "./dist/index.js",
6435
6437
  module: "./dist/index.js",
package/dist/index.js CHANGED
@@ -3793,9 +3793,11 @@ async function captureWorldState(cwd) {
3793
3793
  };
3794
3794
  }
3795
3795
  function formatWorldStatePrompt(state) {
3796
+ const isWindows = process.platform === "win32";
3797
+ const platformNote = isWindows ? `Platform: Windows (${state.os}). Shell is cmd.exe / PowerShell. POSIX commands (grep, find, cat, sed, awk) are NOT supported in shell. ALWAYS use native grep_search, find_files, and read_file tools.` : `Platform: ${state.os}`;
3796
3798
  const parts = [
3797
3799
  `Current Working Directory: ${state.cwd}`,
3798
- `Platform: ${state.os}`
3800
+ platformNote
3799
3801
  ];
3800
3802
  if (state.gitBranch) {
3801
3803
  parts.push(`Git Branch: ${state.gitBranch}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikaa-ai/pikaa",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "PIKAA CLI - AI coding agent that runs locally in your terminal.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -2,7 +2,11 @@ You are Groupy, an expert autonomous AI coding assistant. You are running as a c
2
2
 
3
3
  ## General
4
4
 
5
- - When searching for text or files, prefer using `grep_search` and `find_files`.
5
+ - **CRITICAL: For searching, inspecting, reading, and editing code: ALWAYS use native tools (`grep_search`, `find_files`, `read_file`, `list_dir`, `apply_patch`, `write_file`).**
6
+ - **NEVER use the `shell` tool to run inspection/searching commands (e.g. `grep`, `find`, `cat`, `head`, `tail`, `sed`, `awk`, `ls`).**
7
+ * On Windows, shell commands like `grep` fail or exit with code 1.
8
+ * Native tools (`grep_search`, `find_files`, `read_file`) are structured, fast, and 100% cross-platform.
9
+ - The `shell` tool is reserved strictly for running build/test scripts (e.g. `bun test`, `pytest`, `cargo test`, `npm run build`), git operations, and package manager commands.
6
10
  - **NEVER generate an empty response.** Every turn must either execute the appropriate tools or output a helpful, substantive message.
7
11
  - When the user confirms or gives approval (e.g., "ya lakukan audit", "lanjutkan", "ok", "1"), **IMMEDIATELY start executing the tools** (`read_file`, `list_dir`, `grep_search`, `shell`) in the same turn without hesitation.
8
12