@xynogen/pix-optimizer 1.1.12 → 1.1.13

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.12",
3
+ "version": "1.1.13",
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/opt.ts CHANGED
@@ -136,7 +136,7 @@ export function registerOptCommand(
136
136
  const values = handles[tool].values;
137
137
  const cur = values.indexOf(handles[tool].current());
138
138
  const next = (cur + direction + values.length) % values.length;
139
- handles[tool].run(values[next] as string, ctx);
139
+ handles[tool].run(values[next] ?? "", ctx);
140
140
  };
141
141
 
142
142
  const move = (direction: -1 | 1) => {
package/src/rtk.ts CHANGED
@@ -156,7 +156,7 @@ export function splitChain(command: string): string[] | null {
156
156
  let quote: "'" | '"' | null = null;
157
157
 
158
158
  for (let i = 0; i < command.length; i++) {
159
- const c = command[i] as string;
159
+ const c = command[i] ?? "";
160
160
  const next = command[i + 1];
161
161
 
162
162
  if (quote) {