@giladbarnea/pi-user-agents 0.0.13 → 0.0.14

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.
Files changed (2) hide show
  1. package/command-line.ts +4 -0
  2. package/package.json +1 -1
package/command-line.ts CHANGED
@@ -590,6 +590,10 @@ function analyzeArgumentCursor(
590
590
  usedSemanticIds,
591
591
  );
592
592
  }
593
+ // A cursor on the first character of the prose is inside the prompt, not in an option slot.
594
+ const nextToken = /^\S+/.exec(args.slice(position))?.[0];
595
+ if (position === cursor && nextToken !== undefined && !OPTION_BY_NAME.has(nextToken))
596
+ return undefined;
593
597
  return optionExpectation(command, "", cursor, cursor, usedSemanticIds);
594
598
  }
595
599
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giladbarnea/pi-user-agents",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "Run, view, and control background Pi agents.",
5
5
  "keywords": [
6
6
  "pi-package",