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
|
@@ -491,9 +491,9 @@ class ResumeSessionCommand {
|
|
|
491
491
|
});
|
|
492
492
|
|
|
493
493
|
response += `💡 **使用方法:**\n`;
|
|
494
|
-
response += `• 'stigmergy resume
|
|
495
|
-
response += `• 'stigmergy resume
|
|
496
|
-
response += `• 'stigmergy resume
|
|
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 [
|
|
683
|
+
Usage: stigmergy resume [cli] [limit]
|
|
684
684
|
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
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
|
|
697
|
-
stigmergy resume
|
|
698
|
-
stigmergy resume
|
|
699
|
-
stigmergy resume
|
|
691
|
+
stigmergy resume 5
|
|
692
|
+
stigmergy resume iflow
|
|
693
|
+
stigmergy resume iflow 5
|
|
694
|
+
stigmergy resume claude 3
|
|
700
695
|
`);
|
|
701
696
|
};
|
|
702
697
|
|
package/src/cli/router-beta.js
CHANGED
|
@@ -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('[
|
|
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 (
|
|
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
|
|
package/src/core/cli_tools.js
CHANGED
|
@@ -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
|
-
|
|
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)) {
|