stigmergy 1.1.3 → 1.1.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/package.json +1 -2
- package/src/cli/router.js +2 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stigmergy",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -81,7 +81,6 @@
|
|
|
81
81
|
"child_process": "^1.0.2",
|
|
82
82
|
"chokidar": "^3.5.3",
|
|
83
83
|
"commander": "^12.0.0",
|
|
84
|
-
"crypto": "^1.0.1",
|
|
85
84
|
"events": "^3.3.0",
|
|
86
85
|
"figures": "^3.2.0",
|
|
87
86
|
"fs-extra": "^11.1.1",
|
package/src/cli/router.js
CHANGED
|
@@ -321,19 +321,8 @@ async function main() {
|
|
|
321
321
|
);
|
|
322
322
|
} catch (patternError) {
|
|
323
323
|
// Fallback to original logic if pattern analysis fails
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
toolArgs = ['-p', `"${route.prompt}"`];
|
|
327
|
-
} else if (route.tool === 'qodercli' || route.tool === 'iflow') {
|
|
328
|
-
// Qoder CLI and iFlow expect the prompt with -p flag
|
|
329
|
-
toolArgs = ['-p', `"${route.prompt}"`];
|
|
330
|
-
} else if (route.tool === 'codex') {
|
|
331
|
-
// Codex CLI needs 'exec' subcommand for non-interactive mode
|
|
332
|
-
toolArgs = ['exec', '-p', `"${route.prompt}"`];
|
|
333
|
-
} else {
|
|
334
|
-
// For other tools, pass the prompt with -p flag
|
|
335
|
-
toolArgs = ['-p', `"${route.prompt}"`];
|
|
336
|
-
}
|
|
324
|
+
const CLIParameterHandler = require('../core/cli_parameter_handler');
|
|
325
|
+
toolArgs = CLIParameterHandler.getToolSpecificArguments(route.tool, route.prompt);
|
|
337
326
|
}
|
|
338
327
|
|
|
339
328
|
const toolPath = route.tool;
|