stigmergy 1.0.87 → 1.0.89
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 +2 -2
- package/src/main_english.js +9 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stigmergy",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.89",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System",
|
|
6
6
|
"main": "src/main_english.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dev": "node --watch src/index.js",
|
|
23
23
|
"lint": "eslint src/",
|
|
24
24
|
"format": "prettier --write src/",
|
|
25
|
-
"postinstall": "node src/main_english.js auto-install"
|
|
25
|
+
"postinstall": "echo \"[INFO] Stigmergy CLI is setting up...\" && node src/main_english.js auto-install && echo \"[INFO] Setup completed. Run 'stigmergy --help' to see available commands.\""
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
|
28
28
|
"ai",
|
package/src/main_english.js
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System
|
|
5
5
|
* International Version - Pure English & ANSI Only
|
|
6
|
-
* Version: 1.0.
|
|
6
|
+
* Version: 1.0.89
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
console.log('[DEBUG] Stigmergy CLI script started...');
|
|
10
|
+
|
|
9
11
|
const { spawn, spawnSync } = require('child_process');
|
|
10
12
|
const path = require('path');
|
|
11
13
|
const fs = require('fs/promises');
|
|
@@ -608,8 +610,7 @@ class StigmergyInstaller {
|
|
|
608
610
|
|
|
609
611
|
for (const templateFile of templateFiles) {
|
|
610
612
|
if (templateFile.endsWith('.j2')) {
|
|
611
|
-
const
|
|
612
|
-
const dstFileName = `${baseName}.md`;
|
|
613
|
+
const dstFileName = templateFile.replace('.j2', '');
|
|
613
614
|
const dstPath = path.join(projectDir, dstFileName);
|
|
614
615
|
|
|
615
616
|
// Read template and substitute variables
|
|
@@ -717,7 +718,6 @@ class StigmergyInstaller {
|
|
|
717
718
|
console.log('\n[OK] Hook deployment completed');
|
|
718
719
|
return true;
|
|
719
720
|
}
|
|
720
|
-
}
|
|
721
721
|
|
|
722
722
|
async initializeConfig() {
|
|
723
723
|
console.log('\n[CONFIG] Initializing Stigmergy configuration...');
|
|
@@ -727,7 +727,7 @@ class StigmergyInstaller {
|
|
|
727
727
|
|
|
728
728
|
const configFile = path.join(this.configDir, 'config.json');
|
|
729
729
|
const config = {
|
|
730
|
-
version: '1.0.
|
|
730
|
+
version: '1.0.89',
|
|
731
731
|
initialized: true,
|
|
732
732
|
createdAt: new Date().toISOString(),
|
|
733
733
|
lastUpdated: new Date().toISOString(),
|
|
@@ -776,12 +776,14 @@ class StigmergyInstaller {
|
|
|
776
776
|
|
|
777
777
|
// Main CLI functionality
|
|
778
778
|
async function main() {
|
|
779
|
+
console.log('[DEBUG] Main function called with args:', process.argv);
|
|
780
|
+
|
|
779
781
|
const args = process.argv.slice(2);
|
|
780
782
|
const installer = new StigmergyInstaller();
|
|
781
783
|
|
|
782
784
|
if (args.length === 0 || args.includes('--help') || args.includes('-h')) {
|
|
783
785
|
console.log('Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System');
|
|
784
|
-
console.log('Version: 1.0.
|
|
786
|
+
console.log('Version: 1.0.89');
|
|
785
787
|
console.log('');
|
|
786
788
|
console.log('[SYSTEM] Automated Installation and Deployment System');
|
|
787
789
|
console.log('');
|
|
@@ -812,7 +814,7 @@ async function main() {
|
|
|
812
814
|
switch (command) {
|
|
813
815
|
case 'version':
|
|
814
816
|
case '--version':
|
|
815
|
-
console.log('Stigmergy CLI v1.0.
|
|
817
|
+
console.log('Stigmergy CLI v1.0.89');
|
|
816
818
|
break;
|
|
817
819
|
|
|
818
820
|
case 'status':
|