stigmergy 1.3.16-beta.0 → 1.3.16-beta.2
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
|
@@ -29,8 +29,20 @@ const fs = require('fs');
|
|
|
29
29
|
const path = require('path');
|
|
30
30
|
const os = require('os');
|
|
31
31
|
|
|
32
|
-
//
|
|
33
|
-
const
|
|
32
|
+
// Embedded path configuration for CLI session paths
|
|
33
|
+
const getAllCLISessionPaths = () => {
|
|
34
|
+
const homeDir = os.homedir();
|
|
35
|
+
return {
|
|
36
|
+
claude: [path.join(homeDir, '.claude', 'projects')],
|
|
37
|
+
gemini: [path.join(homeDir, '.config', 'gemini', 'tmp')],
|
|
38
|
+
qwen: [path.join(homeDir, '.qwen', 'projects')],
|
|
39
|
+
iflow: [path.join(homeDir, '.iflow', 'projects')],
|
|
40
|
+
qodercli: [path.join(homeDir, '.qoder', 'projects')],
|
|
41
|
+
codebuddy: [path.join(homeDir, '.codebuddy')],
|
|
42
|
+
codex: [path.join(homeDir, '.config', 'codex')],
|
|
43
|
+
kode: [path.join(homeDir, '.kode', 'projects')]
|
|
44
|
+
};
|
|
45
|
+
};
|
|
34
46
|
|
|
35
47
|
// Embedded ResumeSession Core Functionality
|
|
36
48
|
|
|
@@ -212,7 +224,7 @@ class SessionScanner {
|
|
|
212
224
|
|
|
213
225
|
scanAllCLISessions(projectPath) {
|
|
214
226
|
const allSessions = [];
|
|
215
|
-
const cliPathsMap =
|
|
227
|
+
const cliPathsMap = getAllCLISessionPaths();
|
|
216
228
|
|
|
217
229
|
for (const [cliType, sessionsPaths] of Object.entries(cliPathsMap)) {
|
|
218
230
|
for (const sessionsPath of sessionsPaths) {
|
|
@@ -579,6 +591,9 @@ ${this.generateCLIRegistrationCode(cliName, commandName, projectPath)}
|
|
|
579
591
|
return `
|
|
580
592
|
// ${cliName.charAt(0).toUpperCase() + cliName.slice(1)} CLI integration
|
|
581
593
|
|
|
594
|
+
// Command name constant
|
|
595
|
+
const commandName = '${commandName}';
|
|
596
|
+
|
|
582
597
|
// Main command handler
|
|
583
598
|
function handleHistoryCommand(input) {
|
|
584
599
|
if (!input || typeof input !== 'string') {
|
|
@@ -735,6 +750,9 @@ if (typeof geminiCLI !== 'undefined') {
|
|
|
735
750
|
return `
|
|
736
751
|
// ${cliName.charAt(0).toUpperCase() + cliName.slice(1)} CLI integration
|
|
737
752
|
|
|
753
|
+
// Command name constant
|
|
754
|
+
const commandName = '${commandName}';
|
|
755
|
+
|
|
738
756
|
// Main command handler
|
|
739
757
|
function handleHistoryCommand(input) {
|
|
740
758
|
if (!input || typeof input !== 'string') {
|
|
@@ -816,6 +834,9 @@ module.exports = {
|
|
|
816
834
|
// ${cliName.charAt(0).toUpperCase() + cliName.slice(1)} CLI integration
|
|
817
835
|
// Generic registration - may need customization for specific CLI
|
|
818
836
|
|
|
837
|
+
// Command name constant
|
|
838
|
+
const commandName = '${commandName}';
|
|
839
|
+
|
|
819
840
|
// Main command handler
|
|
820
841
|
function handleHistoryCommand(input) {
|
|
821
842
|
if (!input || typeof input !== 'string') {
|