@xynogen/pix-optimizer 1.1.3 → 1.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-optimizer",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Performance optimization suite for Pi Coding Agent - caveman mode + RTK tool rewriting + jq/TOON JSON compression + ponytail lazy-dev mode",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/rtk.test.ts CHANGED
@@ -68,6 +68,11 @@ describe("rewriteChain", () => {
68
68
  expect(rewriteChain("echo hi && mkdir x")).toBe("echo hi && mkdir x");
69
69
  });
70
70
 
71
+ it("does not prefix find (rtk find rejects -not/-exec)", () => {
72
+ const cmd = "find . -type f -not -path '*/node_modules/*'";
73
+ expect(rewriteChain(cmd)).toBe(cmd);
74
+ });
75
+
71
76
  it("only prefixes known segments in a mixed chain", () => {
72
77
  expect(rewriteChain("cd /tmp && git status")).toBe(
73
78
  "cd /tmp && rtk git status",
package/src/rtk.ts CHANGED
@@ -93,7 +93,7 @@ export function applyRtkRewrite(
93
93
 
94
94
  const RTK_SYSTEM_PROMPT = `# RTK — token-optimized command wrapper
95
95
 
96
- Prefix shell commands with \`rtk\` (e.g. \`rtk git status\`). RTK compacts output for git, gh, cargo, npm/pnpm/yarn/bun, tsc, lint, vitest/jest/playwright, docker, kubectl, ls, grep, find, prisma — and passes anything else through unchanged, so it's always safe.
96
+ Prefix shell commands with \`rtk\` (e.g. \`rtk git status\`). RTK compacts output for git, gh, cargo, npm/pnpm/yarn/bun, tsc, lint, vitest/jest/playwright, docker, kubectl, ls, grep, prisma — and passes anything else through unchanged, so it's always safe.
97
97
 
98
98
  Prefix EVERY segment in a chain, not just the first:
99
99
  \`rtk git add . && rtk git commit -m "msg" && rtk git push\`
@@ -106,7 +106,6 @@ const RTK_COMMANDS = new Set([
106
106
  "gh",
107
107
  "ls",
108
108
  "tree",
109
- "find",
110
109
  "grep",
111
110
  "cat",
112
111
  "head",