@vtstech/pi-react-fallback 1.0.4 → 1.0.5

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/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # @vtstech/pi-react-fallback
2
+
3
+ ReAct fallback extension for the [Pi Coding Agent](https://github.com/badlogic/pi-mono).
4
+
5
+ Text-based tool calling bridge for models without native function calling support.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pi install "npm:@vtstech/pi-react-fallback"
11
+ ```
12
+
13
+ ## How It Works
14
+
15
+ Automatically loaded — no commands needed. When a model lacks native tool calling:
16
+
17
+ - Parses `Thought:`, `Action:`, `Action Input:` patterns from model output
18
+ - Multiple regex strategies including parenthetical style and loose matching
19
+ - Bridges text-based tool calls into Pi's native tool execution pipeline
20
+ - Falls back when native tool calls fail
21
+
22
+ ## Links
23
+
24
+ - [Full Documentation](https://github.com/VTSTech/pi-coding-agent#react-fallback-react-fallbackts)
25
+ - [Changelog](https://github.com/VTSTech/pi-coding-agent/blob/main/CHANGELOG.md)
26
+
27
+ ## License
28
+
29
+ MIT — [VTSTech](https://www.vts-tech.org)
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@vtstech/pi-react-fallback",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "ReAct fallback extension for Pi Coding Agent",
5
5
  "main": "react-fallback.js",
6
- "keywords": ["pi-package", "pi-extensions"],
6
+ "keywords": ["pi-extensions"],
7
7
  "license": "MIT",
8
8
  "access": "public",
9
9
  "type": "module",
@@ -14,7 +14,7 @@
14
14
  "url": "https://github.com/VTSTech/pi-coding-agent"
15
15
  },
16
16
  "dependencies": {
17
- "@vtstech/pi-shared": "1.0.4"
17
+ "@vtstech/pi-shared": "1.0.5"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@mariozechner/pi-coding-agent": ">=0.66"
package/react-fallback.js CHANGED
@@ -277,7 +277,7 @@ function react_fallback_temp_default(pi2) {
277
277
  let reactModeEnabled = false;
278
278
  let stats = { bridgeCalls: 0, fuzzyMatches: 0, argNormalizations: 0, parseFailures: 0 };
279
279
  const branding = [
280
- ` \u26A1 Pi ReAct Fallback Extension v1.0.3`,
280
+ ` \u26A1 Pi ReAct Fallback Extension v1.0.5`,
281
281
  ` Written by VTSTech`,
282
282
  ` GitHub: https://github.com/VTSTech`,
283
283
  ` Website: www.vts-tech.org`