mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
feat: v1.1.0 release - session ID tracking, async hooks, new skills
- Add session ID to session filenames (Issue #62) - Add getSessionIdShort() helper for unique per-session tracking - Add async hooks documentation with example - Create iterative-retrieval skill for progressive context refinement - Add continuous-learning-v2 skill with instinct-based learning - Add ecc.tools ecosystem section to README - Update skills list in README All 67 tests passing.
This commit is contained in:
parent
5670fcd34f
commit
5c63fa9006
19 changed files with 2058 additions and 5 deletions
|
|
@ -79,6 +79,19 @@ function getTimeString() {
|
|||
return `${hours}:${minutes}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get short session ID from CLAUDE_SESSION_ID environment variable
|
||||
* Returns the last 8 characters for uniqueness with brevity
|
||||
* @param {string} fallback - Fallback value if no session ID (default: 'default')
|
||||
*/
|
||||
function getSessionIdShort(fallback = 'default') {
|
||||
const sessionId = process.env.CLAUDE_SESSION_ID;
|
||||
if (!sessionId || sessionId.length === 0) {
|
||||
return fallback;
|
||||
}
|
||||
return sessionId.slice(-8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get current datetime in YYYY-MM-DD HH:MM:SS format
|
||||
*/
|
||||
|
|
@ -360,6 +373,7 @@ module.exports = {
|
|||
getDateString,
|
||||
getTimeString,
|
||||
getDateTimeString,
|
||||
getSessionIdShort,
|
||||
|
||||
// File operations
|
||||
findFiles,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue