stigmergy 1.0.99 → 1.1.0
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 +17 -0
- package/bin/stigmergy +1 -1
- package/bin/stigmergy.cmd +1 -1
- package/docs/NATIVE_INTEGRATION_GUIDE.md +1155 -1190
- package/docs/PROJECT_STRUCTURE.md +283 -303
- package/package.json +10 -7
- package/src/cli/router.js +460 -0
- package/src/core/coordination/index.js +16 -0
- package/src/core/coordination/nodejs/AdapterManager.js +89 -0
- package/src/core/coordination/nodejs/CLCommunication.js +59 -0
- package/src/core/coordination/nodejs/CLIIntegrationManager.js +236 -0
- package/src/core/coordination/nodejs/HealthChecker.js +77 -0
- package/src/core/coordination/nodejs/HookDeploymentManager.js +256 -0
- package/src/core/coordination/nodejs/StatisticsCollector.js +71 -0
- package/src/core/coordination/nodejs/index.js +72 -0
- package/src/core/coordination/nodejs/utils/Logger.js +29 -0
- package/src/core/installer.js +374 -0
- package/src/index.js +25 -4
- package/src/main.js +1068 -831
- package/src/utils/helpers.js +35 -0
- package/test/cross-cli-detection-test.js +33 -0
- package/test/python-plugins-test.js +259 -0
- package/test/remaining-adapters-test.js +256 -0
- package/test/system-compatibility-test.js +466 -446
- package/test/tool-selection-integration-test.js +157 -156
- package/src/main_english.js +0 -1338
package/README.md
CHANGED
|
@@ -47,6 +47,23 @@ Stigmergy CLI enhances the following AI CLI tools:
|
|
|
47
47
|
- **GitHub Copilot CLI** - Microsoft's Copilot
|
|
48
48
|
- **OpenAI Codex CLI** - OpenAI's code completion
|
|
49
49
|
|
|
50
|
+
## Dual Implementation Architecture
|
|
51
|
+
|
|
52
|
+
Stigmergy CLI features a unique dual implementation architecture:
|
|
53
|
+
|
|
54
|
+
### Node.js First Approach
|
|
55
|
+
- **Primary Implementation**: Native Node.js coordination layer
|
|
56
|
+
- **No System Python Required**: Works without Python installation
|
|
57
|
+
- **Graceful Degradation**: Falls back to Python when needed
|
|
58
|
+
- **Enhanced Performance**: Optimized for modern Node.js environments
|
|
59
|
+
|
|
60
|
+
### Python Fallback
|
|
61
|
+
- **Secondary Implementation**: Python-based coordination layer
|
|
62
|
+
- **Legacy Support**: Maintains compatibility with existing installations
|
|
63
|
+
- **Automatic Detection**: Seamlessly switches based on system capabilities
|
|
64
|
+
|
|
65
|
+
This architecture ensures maximum compatibility and reliability across different environments.
|
|
66
|
+
|
|
50
67
|
## Usage
|
|
51
68
|
|
|
52
69
|
### Basic Commands
|
package/bin/stigmergy
CHANGED
|
@@ -18,7 +18,7 @@ process.on('uncaughtException', (error) => {
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
// Get the path to the main script
|
|
21
|
-
const mainScript = path.join(__dirname, '..', 'src', '
|
|
21
|
+
const mainScript = path.join(__dirname, '..', 'src', 'index.js');
|
|
22
22
|
|
|
23
23
|
// Spawn the Node.js process with the main script and all arguments
|
|
24
24
|
const child = spawn(process.execPath, [mainScript, ...process.argv.slice(2)], {
|
package/bin/stigmergy.cmd
CHANGED