@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 +17 -4
- package/binaries/reepoe-linux-x64 +0 -0
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
38
|
-
|
|
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(
|
|
55
|
+
query(queryText);
|
|
Binary file
|