agent-enderun 0.1.1 → 0.1.3
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/.enderun/config.json
CHANGED
package/bin/cli.js
CHANGED
|
@@ -370,7 +370,18 @@ async function initCommand(selectedAdapter) {
|
|
|
370
370
|
const src = path.join(sourceDir, item);
|
|
371
371
|
let dest = path.join(targetDir, item);
|
|
372
372
|
|
|
373
|
-
//
|
|
373
|
+
// FORCED CLEANUP: Delete existing framework directories in target before copying
|
|
374
|
+
if (["packages/framework-mcp", "packages/shared-types", ".enderun", ".gemini", ".claude"].includes(item)) {
|
|
375
|
+
if (fs.existsSync(dest)) {
|
|
376
|
+
try {
|
|
377
|
+
fs.rmSync(dest, { recursive: true, force: true });
|
|
378
|
+
} catch (e) {
|
|
379
|
+
// ignore
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
// Clean up existing lockfiles in target
|
|
374
385
|
if (fs.existsSync(dest)) {
|
|
375
386
|
const lockFile = path.join(dest, "package-lock.json");
|
|
376
387
|
if (fs.existsSync(lockFile)) {
|
|
@@ -440,6 +451,9 @@ async function initCommand(selectedAdapter) {
|
|
|
440
451
|
|
|
441
452
|
const finalMemoryPath = path.join(targetDir, targetBase, "PROJECT_MEMORY.md");
|
|
442
453
|
initializeMemory(finalMemoryPath, targetBase);
|
|
454
|
+
|
|
455
|
+
// Deep clean ALL package.json files in target packages directory
|
|
456
|
+
deepCleanProtocols(path.join(targetDir, "packages"));
|
|
443
457
|
|
|
444
458
|
// Initialize git if missing
|
|
445
459
|
if (!fs.existsSync(path.join(targetDir, ".git"))) {
|
|
@@ -513,6 +527,32 @@ async function initCommand(selectedAdapter) {
|
|
|
513
527
|
}
|
|
514
528
|
}
|
|
515
529
|
|
|
530
|
+
/**
|
|
531
|
+
* Recursively scans a directory for package.json files and removes workspace: protocols.
|
|
532
|
+
*/
|
|
533
|
+
function deepCleanProtocols(dir) {
|
|
534
|
+
if (!fs.existsSync(dir)) return;
|
|
535
|
+
|
|
536
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
537
|
+
for (const entry of entries) {
|
|
538
|
+
const fullPath = path.join(dir, entry.name);
|
|
539
|
+
if (entry.isDirectory()) {
|
|
540
|
+
deepCleanProtocols(fullPath);
|
|
541
|
+
} else if (entry.name === "package.json") {
|
|
542
|
+
try {
|
|
543
|
+
const content = fs.readFileSync(fullPath, "utf8");
|
|
544
|
+
const json = JSON.parse(content);
|
|
545
|
+
const cleaned = JSON.stringify(sanitizeJson(json), null, 2);
|
|
546
|
+
fs.writeFileSync(fullPath, cleaned);
|
|
547
|
+
} catch (e) {
|
|
548
|
+
// ignore malformed json
|
|
549
|
+
}
|
|
550
|
+
} else if (entry.name === "package-lock.json") {
|
|
551
|
+
fs.unlinkSync(fullPath);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
516
556
|
/**
|
|
517
557
|
* Check framework health and MCP status.
|
|
518
558
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-enderun",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"packages/*"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {},
|
|
18
18
|
"devDependencies": {},
|
|
19
19
|
"enderun": {
|
|
20
|
-
"version": "0.
|
|
20
|
+
"version": "0.1.3",
|
|
21
21
|
"initializedAt": "2026-05-09T13:24:27.472Z"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.3",
|
|
3
3
|
"last_updated": "2026-05-09T13:04:00Z",
|
|
4
4
|
"contract_hash": "daf1d688875061ef66697f39ac2449a34631e9b93926ed3e694b4e4ac7423d98",
|
|
5
5
|
"breaking_changes": [
|
|
6
|
-
{ "version": "0.1.
|
|
6
|
+
{ "version": "0.1.3", "description": "Initial framework setup" }
|
|
7
7
|
],
|
|
8
8
|
"deprecated_versions": []
|
|
9
9
|
}
|