stigmergy 1.3.13 ā 1.3.14
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
|
* Resume Session Commands
|
|
3
|
-
* Modular implementation for resume
|
|
3
|
+
* Modular implementation for resume command
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
const chalk = require('chalk');
|
|
@@ -47,7 +47,7 @@ async function handleResumeCommand(args = [], options = {}) {
|
|
|
47
47
|
console.log(chalk.yellow('[INFO] ResumeSession is an optional component for session recovery'));
|
|
48
48
|
|
|
49
49
|
console.log(chalk.blue('\nš¦ To install ResumeSession:'));
|
|
50
|
-
console.log(' npm install -g
|
|
50
|
+
console.log(' npm install -g resumesession');
|
|
51
51
|
console.log('');
|
|
52
52
|
console.log(chalk.blue('š§ ResumeSession provides:'));
|
|
53
53
|
console.log(' ⢠Cross-CLI session history');
|
|
@@ -100,18 +100,16 @@ function printResumeHelp() {
|
|
|
100
100
|
console.log(chalk.cyan(`
|
|
101
101
|
š Stigmergy Resume Session System
|
|
102
102
|
|
|
103
|
-
š ResumeSession forwards to the
|
|
103
|
+
š ResumeSession forwards to the resumesession CLI tool for session management.
|
|
104
104
|
|
|
105
105
|
š ļø Available Commands:
|
|
106
106
|
stigmergy resume [args] Forward to resumesession CLI
|
|
107
|
-
stigmergy resumesession [args] Same as resume (full name)
|
|
108
|
-
stigmergy sg-resume [args] Same as resume (short alias)
|
|
109
107
|
|
|
110
108
|
š¦ Requirements:
|
|
111
|
-
|
|
109
|
+
resumesession CLI tool must be installed separately.
|
|
112
110
|
|
|
113
111
|
š¾ Installation:
|
|
114
|
-
npm install -g
|
|
112
|
+
npm install -g resumesession
|
|
115
113
|
|
|
116
114
|
š Common Usage:
|
|
117
115
|
stigmergy resume list # Show available sessions
|
package/src/cli/router-beta.js
CHANGED
|
@@ -319,7 +319,7 @@ async function main() {
|
|
|
319
319
|
await handleAutoInstallCommand(options);
|
|
320
320
|
});
|
|
321
321
|
|
|
322
|
-
// Resume session
|
|
322
|
+
// Resume session command
|
|
323
323
|
program
|
|
324
324
|
.command('resume')
|
|
325
325
|
.description('Resume session (forwards to @stigmergy/resume CLI tool)')
|
|
@@ -329,26 +329,8 @@ async function main() {
|
|
|
329
329
|
await handleResumeCommand(args, options);
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
program
|
|
333
|
-
.command('resumesession')
|
|
334
|
-
.description('Resume session management (forwards to @stigmergy/resume)')
|
|
335
|
-
.argument('[args...]', 'Arguments to pass to resumesession')
|
|
336
|
-
.option('-v, --verbose', 'Verbose output')
|
|
337
|
-
.action(async (args, options) => {
|
|
338
|
-
await handleResumeCommand(args, options);
|
|
339
|
-
});
|
|
340
|
-
|
|
341
|
-
program
|
|
342
|
-
.command('sg-resume')
|
|
343
|
-
.description('Resume session management (short alias)')
|
|
344
|
-
.argument('[args...]', 'Arguments to pass to resumesession')
|
|
345
|
-
.option('-v, --verbose', 'Verbose output')
|
|
346
|
-
.action(async (args, options) => {
|
|
347
|
-
await handleResumeCommand(args, options);
|
|
348
|
-
});
|
|
349
|
-
|
|
350
332
|
// Route commands to CLI tools
|
|
351
|
-
for (const tool of ['claude', 'gemini', 'qwen', 'codebuddy', 'codex', 'iflow', 'qodercli', 'copilot', 'kode'
|
|
333
|
+
for (const tool of ['claude', 'gemini', 'qwen', 'codebuddy', 'codex', 'iflow', 'qodercli', 'copilot', 'kode']) {
|
|
352
334
|
program
|
|
353
335
|
.command(tool)
|
|
354
336
|
.description(`Use ${tool} CLI tool`)
|
|
@@ -534,8 +534,8 @@ function buildQuery(input) {
|
|
|
534
534
|
search: null
|
|
535
535
|
};
|
|
536
536
|
|
|
537
|
-
const cleanInput = input.replace(new RegExp('^\\\\\\\\/?' + '${commandName}' + '
|
|
538
|
-
const parts = cleanInput.split(
|
|
537
|
+
const cleanInput = input.replace(new RegExp('^\\\\\\\\/?' + '${commandName}' + '\\\\\\s*', 'i'), '').trim();
|
|
538
|
+
const parts = cleanInput.split(/\\\\s+/).filter(p => p.length > 0);
|
|
539
539
|
|
|
540
540
|
for (let i = 0; i < parts.length; i++) {
|
|
541
541
|
const part = parts[i].toLowerCase();
|
|
@@ -624,8 +624,8 @@ class GeminiHistoryHandler {
|
|
|
624
624
|
search: null
|
|
625
625
|
};
|
|
626
626
|
|
|
627
|
-
const cleanInput = input.replace(new RegExp('^\\\\\\\\/?' + this.commandName + '
|
|
628
|
-
const parts = cleanInput.split(
|
|
627
|
+
const cleanInput = input.replace(new RegExp('^\\\\\\\\/?' + this.commandName + '\\\\\\s*', 'i'), '').trim();
|
|
628
|
+
const parts = cleanInput.split(/\\\\s+/).filter(p => p.length > 0);
|
|
629
629
|
|
|
630
630
|
for (let i = 0; i < parts.length; i++) {
|
|
631
631
|
const part = parts[i].toLowerCase();
|