@tonycasey/lisa 1.1.0 → 1.1.1
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/dist/package.json +2 -1
- package/package.json +2 -1
- package/scripts/postinstall.js +9 -7
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonycasey/lisa",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Long-term memory for Claude Code. Automatic context persistence, task tracking, and knowledge capture across coding sessions.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"remember": "cli.js",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"commander": "^11.1.0",
|
|
39
39
|
"execa": "^8.0.1",
|
|
40
40
|
"fs-extra": "^11.2.0",
|
|
41
|
+
"glob": "^10.3.10",
|
|
41
42
|
"yaml": "^2.4.2"
|
|
42
43
|
}
|
|
43
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonycasey/lisa",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Long-term memory for Claude Code. Automatic context persistence, task tracking, and knowledge capture across coding sessions.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"lisa": "dist/cli.js",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"commander": "^11.1.0",
|
|
56
56
|
"execa": "^8.0.1",
|
|
57
57
|
"fs-extra": "^11.2.0",
|
|
58
|
+
"glob": "^10.3.10",
|
|
58
59
|
"yaml": "^2.4.2"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
package/scripts/postinstall.js
CHANGED
|
@@ -347,7 +347,9 @@ async function preserveLocalExtensions(targetDir) {
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
// Find all .local directories (skill extensions)
|
|
350
|
-
|
|
350
|
+
// Use trailing slash to match only directories (glob doesn't support onlyDirectories option)
|
|
351
|
+
const localDirMatches = await glob('**/*.local/', { cwd: targetDir });
|
|
352
|
+
const localDirs = localDirMatches.map(d => d.replace(/\/$/, '')); // Remove trailing slash
|
|
351
353
|
for (const dir of localDirs) {
|
|
352
354
|
const fullPath = path.join(targetDir, dir);
|
|
353
355
|
const files = [];
|
|
@@ -429,17 +431,17 @@ async function copyDockerFiles(agentsDir) {
|
|
|
429
431
|
await fs.copy(composeSrc, composeDest, { overwrite: false });
|
|
430
432
|
}
|
|
431
433
|
|
|
432
|
-
// Copy .env
|
|
433
|
-
const envSrc = path.join(dockerSrc, '.env
|
|
434
|
+
// Copy .env to project root (if no .env exists)
|
|
435
|
+
const envSrc = path.join(dockerSrc, '.env');
|
|
434
436
|
const rootEnv = path.join(path.dirname(agentsDir), '.env');
|
|
435
|
-
const envExampleDest = path.join(path.dirname(agentsDir), '.env
|
|
437
|
+
const envExampleDest = path.join(path.dirname(agentsDir), '.env');
|
|
436
438
|
if (await fs.pathExists(envSrc)) {
|
|
437
439
|
// Always copy the example file for reference
|
|
438
440
|
await fs.copy(envSrc, envExampleDest, { overwrite: false });
|
|
439
441
|
// If no .env exists, create one from the example
|
|
440
442
|
if (!(await fs.pathExists(rootEnv))) {
|
|
441
443
|
await fs.copy(envSrc, rootEnv);
|
|
442
|
-
console.log(' Created .env from .env
|
|
444
|
+
console.log(' Created .env from .env');
|
|
443
445
|
}
|
|
444
446
|
}
|
|
445
447
|
|
|
@@ -561,10 +563,10 @@ async function setupDocker(agentsDir) {
|
|
|
561
563
|
// Check if .env exists in project root, if not copy from example
|
|
562
564
|
const projectRoot = path.dirname(agentsDir);
|
|
563
565
|
const envFile = path.join(projectRoot, '.env');
|
|
564
|
-
const envExample = path.join(projectRoot, '.env
|
|
566
|
+
const envExample = path.join(projectRoot, '.env');
|
|
565
567
|
if (!(await fs.pathExists(envFile)) && (await fs.pathExists(envExample))) {
|
|
566
568
|
await fs.copy(envExample, envFile);
|
|
567
|
-
console.log(' Created .env from .env
|
|
569
|
+
console.log(' Created .env from .env');
|
|
568
570
|
console.log(' IMPORTANT: Edit .env and add your OPENAI_API_KEY');
|
|
569
571
|
}
|
|
570
572
|
|