@reepoe/plugin 1.3.10 → 1.3.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/bin/reepoe.js CHANGED
@@ -26,7 +26,8 @@ async function query(instruction) {
26
26
  user_email: activation.email
27
27
  }, { timeout: 60000 });
28
28
 
29
- console.log(response.data.response || JSON.stringify(response.data, null, 2));
29
+ // FIX #1: Always print full JSON for AI agent parsing
30
+ console.log(JSON.stringify(response.data, null, 2));
30
31
  } catch (error) {
31
32
  console.error('❌ Query failed:', error.response?.data?.detail || error.message);
32
33
  process.exit(1);
@@ -34,9 +35,21 @@ async function query(instruction) {
34
35
  }
35
36
 
36
37
  const args = process.argv.slice(2);
37
- if (args.length === 0) {
38
- console.log('Usage: reepoe query "your question"');
38
+
39
+ // FIX #2: Support both "reepoe query <text>" AND "reepoe <text>"
40
+ // Strip the "query" command to avoid parameter extraction confusion
41
+ let queryText;
42
+ if (args[0] === 'query') {
43
+ // Explicit 'query' command - skip it
44
+ queryText = args.slice(1).join(' ');
45
+ } else {
46
+ // Direct query - use all args
47
+ queryText = args.join(' ');
48
+ }
49
+
50
+ if (!queryText) {
51
+ console.log('Usage: reepoe query "your question" OR reepoe "your question"');
39
52
  process.exit(1);
40
53
  }
41
54
 
42
- query(args.join(' '));
55
+ query(queryText);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reepoe/plugin",
3
- "version": "1.3.10",
3
+ "version": "1.3.13",
4
4
  "description": "ReePoe AI Code Manager - Install in any codebase for instant AI agent integration",
5
5
  "keywords": [
6
6
  "ai",