agent-enderun 0.1.1 → 0.1.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/.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)) {
|
|
@@ -438,8 +449,10 @@ async function initCommand(selectedAdapter) {
|
|
|
438
449
|
mergePackageJson(path.join(targetDir, "package.json"), path.join(sourceDir, "package.json"));
|
|
439
450
|
updateGitIgnore(path.join(targetDir, ".gitignore"), targetBase);
|
|
440
451
|
|
|
441
|
-
const finalMemoryPath = path.join(targetDir, targetBase, "PROJECT_MEMORY.md");
|
|
442
452
|
initializeMemory(finalMemoryPath, targetBase);
|
|
453
|
+
|
|
454
|
+
// Deep clean ALL package.json files in target packages directory
|
|
455
|
+
deepCleanProtocols(path.join(targetDir, "packages"));
|
|
443
456
|
|
|
444
457
|
// Initialize git if missing
|
|
445
458
|
if (!fs.existsSync(path.join(targetDir, ".git"))) {
|
|
@@ -513,6 +526,32 @@ async function initCommand(selectedAdapter) {
|
|
|
513
526
|
}
|
|
514
527
|
}
|
|
515
528
|
|
|
529
|
+
/**
|
|
530
|
+
* Recursively scans a directory for package.json files and removes workspace: protocols.
|
|
531
|
+
*/
|
|
532
|
+
function deepCleanProtocols(dir) {
|
|
533
|
+
if (!fs.existsSync(dir)) return;
|
|
534
|
+
|
|
535
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
536
|
+
for (const entry of entries) {
|
|
537
|
+
const fullPath = path.join(dir, entry.name);
|
|
538
|
+
if (entry.isDirectory()) {
|
|
539
|
+
deepCleanProtocols(fullPath);
|
|
540
|
+
} else if (entry.name === "package.json") {
|
|
541
|
+
try {
|
|
542
|
+
const content = fs.readFileSync(fullPath, "utf8");
|
|
543
|
+
const json = JSON.parse(content);
|
|
544
|
+
const cleaned = JSON.stringify(sanitizeJson(json), null, 2);
|
|
545
|
+
fs.writeFileSync(fullPath, cleaned);
|
|
546
|
+
} catch (e) {
|
|
547
|
+
// ignore malformed json
|
|
548
|
+
}
|
|
549
|
+
} else if (entry.name === "package-lock.json") {
|
|
550
|
+
fs.unlinkSync(fullPath);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
516
555
|
/**
|
|
517
556
|
* Check framework health and MCP status.
|
|
518
557
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-enderun",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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.2",
|
|
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.2",
|
|
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.2", "description": "Initial framework setup" }
|
|
7
7
|
],
|
|
8
8
|
"deprecated_versions": []
|
|
9
9
|
}
|