stigmergy 1.3.25-beta.0 → 1.3.26-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stigmergy",
3
- "version": "1.3.25-beta.0",
3
+ "version": "1.3.26-beta.0",
4
4
  "description": "Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -491,9 +491,9 @@ class ResumeSessionCommand {
491
491
  });
492
492
 
493
493
  response += `💡 **使用方法:**\n`;
494
- response += `• 'stigmergy resume --cli <工具>' - 查看特定CLI\n`;
495
- response += `• 'stigmergy resume --search <关键词>' - 搜索内容\n`;
496
- response += `• 'stigmergy resume --format timeline' - 时间线视图`;
494
+ response += `• 'stigmergy resume <数字>' - 显示指定数量的会话\n`;
495
+ response += `• 'stigmergy resume <cli>' - 查看特定CLI的会话\n`;
496
+ response += `• 'stigmergy resume <cli> <数字>' - 查看特定CLI的指定数量会话`;
497
497
 
498
498
  return response;
499
499
  }
@@ -680,23 +680,18 @@ module.exports.printResumeHelp = function() {
680
680
  console.log(`
681
681
  ResumeSession - Cross-CLI session recovery and history management
682
682
 
683
- Usage: stigmergy resume [options]
683
+ Usage: stigmergy resume [cli] [limit]
684
684
 
685
- Options:
686
- --cli <name> Filter by CLI tool (claude, gemini, qwen, etc.)
687
- --search <term> Search sessions by content
688
- --limit <num> Maximum sessions to show (default: 10)
689
- --format <type> Output format: summary, timeline, detailed, context
690
- --today Show today's sessions only
691
- --week Show sessions from last 7 days
692
- --month Show sessions from last 30 days
685
+ Arguments:
686
+ cli CLI tool to filter (claude, gemini, qwen, iflow, codebuddy, codex, qodercli)
687
+ limit Maximum number of sessions to show (default: 10)
693
688
 
694
689
  Examples:
695
690
  stigmergy resume
696
- stigmergy resume --cli claude
697
- stigmergy resume --search react
698
- stigmergy resume --format timeline
699
- stigmergy resume --today
691
+ stigmergy resume 5
692
+ stigmergy resume iflow
693
+ stigmergy resume iflow 5
694
+ stigmergy resume claude 3
700
695
  `);
701
696
  };
702
697
 
@@ -331,9 +331,13 @@ async function main() {
331
331
  program
332
332
  .command('resume')
333
333
  .description('Resume session - Cross-CLI session recovery and history management')
334
- .argument('[args...]', 'Arguments to pass to resumesession')
334
+ .argument('[cli]', 'CLI tool to filter (claude, gemini, qwen, iflow, codebuddy, codex, qodercli)')
335
+ .argument('[limit]', 'Maximum number of sessions to show')
335
336
  .option('-v, --verbose', 'Verbose output')
336
- .action(async (args, options) => {
337
+ .action(async (cli, limit, options) => {
338
+ const args = [];
339
+ if (cli) args.push(cli);
340
+ if (limit) args.push(limit);
337
341
  await handleResumeCommand(args, options);
338
342
  });
339
343
 
@@ -663,7 +663,8 @@ async function checkInstallation(toolName) {
663
663
  const result = spawnSync(versionCmd.split(' ')[0], versionCmd.split(' ').slice(1), {
664
664
  encoding: 'utf8',
665
665
  shell: true,
666
- timeout: 5000
666
+ timeout: 3000, // 减少超时时间从 5000 到 3000
667
+ stdio: ['ignore', 'pipe', 'pipe'] // 添加 stdio 配置
667
668
  });
668
669
 
669
670
  if (result.status === 0) {
@@ -91,7 +91,18 @@ class BuiltinSkillsDeployer {
91
91
  return { success: false, cliName, skillName: skill.name, error: 'CLI not installed' };
92
92
  }
93
93
 
94
- const cliSkillsDir = path.join(cliHomeDir, 'skills', skill.name);
94
+ // Ensure skills directory exists
95
+ const cliSkillsRootDir = path.join(cliHomeDir, 'skills');
96
+ if (!fs.existsSync(cliSkillsRootDir)) {
97
+ try {
98
+ fs.mkdirSync(cliSkillsRootDir, { recursive: true });
99
+ } catch (error) {
100
+ console.error(`[BUILTIN_SKILLS] Failed to create skills root directory for ${cliName}:`, error.message);
101
+ return { success: false, cliName, skillName: skill.name, error: error.message };
102
+ }
103
+ }
104
+
105
+ const cliSkillsDir = path.join(cliSkillsRootDir, skill.name);
95
106
 
96
107
  // Create skills directory
97
108
  if (!fs.existsSync(cliSkillsDir)) {