oh-my-customcode 0.45.1 → 0.45.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/dist/cli/index.js +22 -3
- package/dist/index.js +10 -0
- package/package.json +1 -1
- package/templates/manifest.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -9323,7 +9323,7 @@ var init_package = __esm(() => {
|
|
|
9323
9323
|
package_default = {
|
|
9324
9324
|
name: "oh-my-customcode",
|
|
9325
9325
|
workspaces: ["packages/*"],
|
|
9326
|
-
version: "0.45.
|
|
9326
|
+
version: "0.45.3",
|
|
9327
9327
|
description: "Batteries-included agent harness for Claude Code",
|
|
9328
9328
|
type: "module",
|
|
9329
9329
|
bin: {
|
|
@@ -9501,8 +9501,16 @@ async function searchDirectory(dir2, depth, results, currentVersion, seen) {
|
|
|
9501
9501
|
await Promise.all(subdirs.map((subdir) => searchDirectory(join9(dir2, subdir.name), depth + 1, results, currentVersion, seen)));
|
|
9502
9502
|
}
|
|
9503
9503
|
}
|
|
9504
|
+
async function getTemplateVersion() {
|
|
9505
|
+
const manifestPath = resolveTemplatePath("manifest.json");
|
|
9506
|
+
if (await fileExists(manifestPath)) {
|
|
9507
|
+
const manifest = await readJsonFile(manifestPath);
|
|
9508
|
+
return manifest.version;
|
|
9509
|
+
}
|
|
9510
|
+
return package_default.version;
|
|
9511
|
+
}
|
|
9504
9512
|
async function findProjects(options = {}) {
|
|
9505
|
-
const currentVersion =
|
|
9513
|
+
const currentVersion = await getTemplateVersion();
|
|
9506
9514
|
const home = homedir2();
|
|
9507
9515
|
const seen = new Set;
|
|
9508
9516
|
const results = [];
|
|
@@ -9589,7 +9597,7 @@ oh-my-customcode 적용 프로젝트 (${projects.length}개):`);
|
|
|
9589
9597
|
현재 설치 버전: v${currentVersion}`);
|
|
9590
9598
|
}
|
|
9591
9599
|
async function projectsCommand(options = {}) {
|
|
9592
|
-
const currentVersion =
|
|
9600
|
+
const currentVersion = await getTemplateVersion();
|
|
9593
9601
|
const format = options.format || "table";
|
|
9594
9602
|
console.log(" oh-my-customcode 적용 프로젝트를 검색 중...");
|
|
9595
9603
|
try {
|
|
@@ -9611,6 +9619,7 @@ async function projectsCommand(options = {}) {
|
|
|
9611
9619
|
var DEFAULT_SEARCH_DIRS, MAX_SEARCH_DEPTH = 3, projects_default;
|
|
9612
9620
|
var init_projects = __esm(() => {
|
|
9613
9621
|
init_package();
|
|
9622
|
+
init_fs();
|
|
9614
9623
|
DEFAULT_SEARCH_DIRS = ["workspace", "projects", "dev", "src", "code", "repos", "work"];
|
|
9615
9624
|
projects_default = projectsCommand;
|
|
9616
9625
|
});
|
|
@@ -30029,6 +30038,16 @@ async function update(options) {
|
|
|
30029
30038
|
info("update.start", { targetDir: options.targetDir });
|
|
30030
30039
|
const config = await loadConfig(options.targetDir);
|
|
30031
30040
|
result.previousVersion = config.version;
|
|
30041
|
+
const targetPkgPath = join14(options.targetDir, "package.json");
|
|
30042
|
+
if (await fileExists(targetPkgPath)) {
|
|
30043
|
+
const targetPkg = await readJsonFile(targetPkgPath);
|
|
30044
|
+
if (targetPkg.name === "oh-my-customcode") {
|
|
30045
|
+
warn("update.self_update_skipped");
|
|
30046
|
+
result.success = true;
|
|
30047
|
+
result.warnings.push("Skipped: source project cannot update itself");
|
|
30048
|
+
return result;
|
|
30049
|
+
}
|
|
30050
|
+
}
|
|
30032
30051
|
const updateCheck = await checkForUpdates(options.targetDir);
|
|
30033
30052
|
result.newVersion = updateCheck.latestVersion;
|
|
30034
30053
|
if (!updateCheck.hasUpdates && !options.force) {
|
package/dist/index.js
CHANGED
|
@@ -1952,6 +1952,16 @@ async function update(options) {
|
|
|
1952
1952
|
info("update.start", { targetDir: options.targetDir });
|
|
1953
1953
|
const config = await loadConfig(options.targetDir);
|
|
1954
1954
|
result.previousVersion = config.version;
|
|
1955
|
+
const targetPkgPath = join6(options.targetDir, "package.json");
|
|
1956
|
+
if (await fileExists(targetPkgPath)) {
|
|
1957
|
+
const targetPkg = await readJsonFile(targetPkgPath);
|
|
1958
|
+
if (targetPkg.name === "oh-my-customcode") {
|
|
1959
|
+
warn("update.self_update_skipped");
|
|
1960
|
+
result.success = true;
|
|
1961
|
+
result.warnings.push("Skipped: source project cannot update itself");
|
|
1962
|
+
return result;
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1955
1965
|
const updateCheck = await checkForUpdates(options.targetDir);
|
|
1956
1966
|
result.newVersion = updateCheck.latestVersion;
|
|
1957
1967
|
if (!updateCheck.hasUpdates && !options.force) {
|
package/package.json
CHANGED
package/templates/manifest.json
CHANGED