agent-enderun 0.2.3 → 0.2.5
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.md +1 -1
- package/README.md +1 -1
- package/bin/cli.js +19 -5
- package/package.json +1 -1
- package/packages/framework-mcp/package.json +1 -1
- package/packages/framework-mcp/src/index.ts +1 -1
- package/packages/framework-mcp/src/utils.ts +1 -1
- package/packages/shared-types/package.json +1 -1
package/ENDERUN.md
CHANGED
package/README.md
CHANGED
package/bin/cli.js
CHANGED
|
@@ -125,6 +125,20 @@ function mergePackageJson(targetPath, sourcePath) {
|
|
|
125
125
|
return cleaned;
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
+
const targetScope = targetPkg.name;
|
|
129
|
+
// Cleanup potential leftovers from previous bugged runs where agent-enderun was renamed to target name
|
|
130
|
+
if (targetScope) {
|
|
131
|
+
const scopeName = targetScope.startsWith("@") ? targetScope.slice(1) : targetScope;
|
|
132
|
+
if (targetPkg.devDependencies) {
|
|
133
|
+
delete targetPkg.devDependencies[scopeName];
|
|
134
|
+
delete targetPkg.devDependencies[targetScope];
|
|
135
|
+
}
|
|
136
|
+
if (targetPkg.dependencies) {
|
|
137
|
+
delete targetPkg.dependencies[scopeName];
|
|
138
|
+
delete targetPkg.dependencies[targetScope];
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
128
142
|
targetPkg.dependencies = sanitizeDeps({
|
|
129
143
|
...targetPkg.dependencies,
|
|
130
144
|
...sourcePkg.dependencies
|
|
@@ -657,13 +671,13 @@ function sanitizeJson(obj, targetScope = "") {
|
|
|
657
671
|
finalValue = value.replace("ai-enderun-", `${scopeName}-`);
|
|
658
672
|
}
|
|
659
673
|
|
|
660
|
-
// Handle agent-enderun -> target
|
|
661
|
-
if (
|
|
662
|
-
finalKey = scopeName;
|
|
663
|
-
}
|
|
664
|
-
if (typeof value === "string" && value === "agent-enderun") {
|
|
674
|
+
// Handle agent-enderun -> target (ONLY for the package name)
|
|
675
|
+
if (key === "name" && value === "agent-enderun") {
|
|
665
676
|
finalValue = scopeName;
|
|
666
677
|
}
|
|
678
|
+
|
|
679
|
+
// Preserve agent-enderun in dependencies and bin
|
|
680
|
+
// (No action needed as finalKey/finalValue default to original)
|
|
667
681
|
|
|
668
682
|
if (typeof value === "string" && value.startsWith("workspace:")) {
|
|
669
683
|
finalValue = "*";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import fs from "fs";
|
|
3
3
|
|
|
4
|
-
export const FRAMEWORK_VERSION = "0.2.
|
|
4
|
+
export const FRAMEWORK_VERSION = "0.2.5";
|
|
5
5
|
|
|
6
6
|
export function getFrameworkDir(projectRoot: string): string {
|
|
7
7
|
const adapters = [".gemini", ".claude", ".cursor", ".codex", ".enderun"];
|