stigmergy 1.3.23-beta.0 → 1.3.25-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.
|
|
3
|
+
"version": "1.3.25-beta.0",
|
|
4
4
|
"description": "Stigmergy CLI - Multi-Agents Cross-AI CLI Tools Collaboration System",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"src/**/*.js",
|
|
86
86
|
"config/**/*.json",
|
|
87
87
|
"templates/**/*.md",
|
|
88
|
+
"skills/**/*",
|
|
88
89
|
"bin/**/*",
|
|
89
90
|
"test/**/*.js",
|
|
90
91
|
"scripts/**/*.js",
|
|
@@ -114,22 +115,20 @@
|
|
|
114
115
|
},
|
|
115
116
|
"dependencies": {
|
|
116
117
|
"chalk": "^4.1.2",
|
|
117
|
-
"commander": "^
|
|
118
|
-
"inquirer": "^
|
|
118
|
+
"commander": "^14.0.2",
|
|
119
|
+
"inquirer": "^13.1.0",
|
|
119
120
|
"js-yaml": "^4.1.1",
|
|
120
121
|
"semver": "^7.7.3"
|
|
121
122
|
},
|
|
122
123
|
"devDependencies": {
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"eslint": "^8.57.1",
|
|
126
|
-
"jest": "^29.7.0",
|
|
124
|
+
"eslint": "^9.39.2",
|
|
125
|
+
"jest": "^30.2.0",
|
|
127
126
|
"prettier": "^3.7.4",
|
|
128
|
-
"rimraf": "^6.1.2"
|
|
129
|
-
"webpack": "^5.104.1",
|
|
130
|
-
"webpack-cli": "^6.0.1",
|
|
131
|
-
"webpack-dev-server": "^5.2.2"
|
|
127
|
+
"rimraf": "^6.1.2"
|
|
132
128
|
},
|
|
129
|
+
"optionalDependencies": {},
|
|
130
|
+
"peerDependencies": {},
|
|
131
|
+
"bundledDependencies": [],
|
|
133
132
|
"config": {
|
|
134
133
|
"encoding": "ansi",
|
|
135
134
|
"platform": "nodejs-first",
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: resumesession
|
|
3
|
+
description: Cross-CLI session recovery and history management skill
|
|
4
|
+
author: stigmergy
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# ResumeSession Skill
|
|
9
|
+
|
|
10
|
+
Cross-CLI session recovery and history management skill for Claude CLI.
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
This skill enables Claude CLI to:
|
|
15
|
+
- Scan and display sessions from all supported CLI tools (Claude, Gemini, Qwen, iFlow, CodeBuddy, Codex, QoderCLI)
|
|
16
|
+
- Filter sessions by CLI tool, time range, or search terms
|
|
17
|
+
- Recover context from previous sessions
|
|
18
|
+
- Provide multiple view formats (summary, timeline, detailed, context)
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
### Basic Commands
|
|
23
|
+
|
|
24
|
+
Use the Bash tool to invoke ResumeSession functionality:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Show all project sessions (default: 10 sessions)
|
|
28
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js")
|
|
29
|
+
|
|
30
|
+
# Show sessions from specific CLI
|
|
31
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --cli claude")
|
|
32
|
+
|
|
33
|
+
# Search sessions by content
|
|
34
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --search react")
|
|
35
|
+
|
|
36
|
+
# Show today's sessions only
|
|
37
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --today")
|
|
38
|
+
|
|
39
|
+
# Show sessions from last 7 days
|
|
40
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --week")
|
|
41
|
+
|
|
42
|
+
# Show sessions from last 30 days
|
|
43
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --month")
|
|
44
|
+
|
|
45
|
+
# Limit number of sessions shown
|
|
46
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --limit 5")
|
|
47
|
+
|
|
48
|
+
# Use different view formats
|
|
49
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --format timeline")
|
|
50
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --format detailed")
|
|
51
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --format context")
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Examples
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Show all React-related sessions
|
|
58
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --search react")
|
|
59
|
+
|
|
60
|
+
# Show recent Claude sessions
|
|
61
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --cli claude --today")
|
|
62
|
+
|
|
63
|
+
# Show timeline of all sessions
|
|
64
|
+
Bash("node D:\\stigmergy-CLI-Multi-Agents\\src\\cli\\commands\\resume.js --format timeline")
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Features
|
|
68
|
+
|
|
69
|
+
- ✅ Cross-CLI session discovery
|
|
70
|
+
- ✅ Project-aware filtering
|
|
71
|
+
- ✅ Time-based sorting (most recent first)
|
|
72
|
+
- ✅ Content search
|
|
73
|
+
- ✅ Context recovery
|
|
74
|
+
- ✅ Multiple view formats
|
|
75
|
+
|
|
76
|
+
## Configuration
|
|
77
|
+
|
|
78
|
+
The skill automatically detects the current project path and scans session directories for all supported CLI tools.
|
|
79
|
+
|
|
80
|
+
Session paths are automatically detected from:
|
|
81
|
+
- `~/.claude/projects` (Claude)
|
|
82
|
+
- `~/.config/gemini/tmp` (Gemini)
|
|
83
|
+
- `~/.qwen/projects` (Qwen)
|
|
84
|
+
- `~/.iflow/projects` (iFlow)
|
|
85
|
+
- `~/.codebuddy` (CodeBuddy)
|
|
86
|
+
- `~/.config/codex` (Codex)
|
|
87
|
+
- `~/.qoder/projects` (QoderCLI)
|
|
88
|
+
|
|
89
|
+
## Notes
|
|
90
|
+
|
|
91
|
+
This skill requires the Stigmergy CLI to be installed and configured. The `stigmergy resume` command handles all session scanning and formatting logic.
|
|
@@ -84,11 +84,23 @@ class BuiltinSkillsDeployer {
|
|
|
84
84
|
async deployToCLI(skill, cliName) {
|
|
85
85
|
try {
|
|
86
86
|
const cliHomeDir = path.join(os.homedir(), `.${cliName}`);
|
|
87
|
+
|
|
88
|
+
// Check if CLI exists
|
|
89
|
+
if (!fs.existsSync(cliHomeDir)) {
|
|
90
|
+
console.warn(`[BUILTIN_SKILLS] CLI not found: ${cliName} (${cliHomeDir})`);
|
|
91
|
+
return { success: false, cliName, skillName: skill.name, error: 'CLI not installed' };
|
|
92
|
+
}
|
|
93
|
+
|
|
87
94
|
const cliSkillsDir = path.join(cliHomeDir, 'skills', skill.name);
|
|
88
95
|
|
|
89
96
|
// Create skills directory
|
|
90
97
|
if (!fs.existsSync(cliSkillsDir)) {
|
|
91
|
-
|
|
98
|
+
try {
|
|
99
|
+
fs.mkdirSync(cliSkillsDir, { recursive: true });
|
|
100
|
+
} catch (error) {
|
|
101
|
+
console.error(`[BUILTIN_SKILLS] Failed to create skills directory for ${cliName}:`, error.message);
|
|
102
|
+
return { success: false, cliName, skillName: skill.name, error: error.message };
|
|
103
|
+
}
|
|
92
104
|
}
|
|
93
105
|
|
|
94
106
|
// Copy skill files
|
|
@@ -97,12 +109,18 @@ class BuiltinSkillsDeployer {
|
|
|
97
109
|
const sourcePath = path.join(this.skillsBaseDir, file.source);
|
|
98
110
|
const destPath = path.join(cliSkillsDir, path.basename(file.destination));
|
|
99
111
|
|
|
100
|
-
if (fs.existsSync(sourcePath)) {
|
|
112
|
+
if (!fs.existsSync(sourcePath)) {
|
|
113
|
+
console.warn(`[BUILTIN_SKILLS] Source file not found: ${sourcePath}`);
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
try {
|
|
101
118
|
const content = fs.readFileSync(sourcePath, 'utf8');
|
|
102
119
|
fs.writeFileSync(destPath, content);
|
|
103
120
|
console.log(`[BUILTIN_SKILLS] Deployed ${file.source} to ${cliName}`);
|
|
104
|
-
}
|
|
105
|
-
console.
|
|
121
|
+
} catch (error) {
|
|
122
|
+
console.error(`[BUILTIN_SKILLS] Failed to copy ${file.source} to ${cliName}:`, error.message);
|
|
123
|
+
return { success: false, cliName, skillName: skill.name, error: error.message };
|
|
106
124
|
}
|
|
107
125
|
}
|
|
108
126
|
|