@c-d-cc/reap 0.15.11 → 0.15.12
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/RELEASE_NOTICE.md +6 -0
- package/dist/cli.js +32 -15
- package/package.json +1 -1
package/RELEASE_NOTICE.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Release Notices
|
|
2
2
|
|
|
3
|
+
## v0.15.12
|
|
4
|
+
### en
|
|
5
|
+
Release notice now displays correctly after `reap update` auto-upgrade.
|
|
6
|
+
### ko
|
|
7
|
+
`reap update` 자동 업그레이드 후 릴리스 공지가 정상 표시됩니다.
|
|
8
|
+
|
|
3
9
|
## v0.15.11
|
|
4
10
|
### en
|
|
5
11
|
Fixed `reap pull` incorrectly recommending merge for ahead-only branches. Now uses `git rev-list` for accurate ahead/behind/diverged detection.
|
package/dist/cli.js
CHANGED
|
@@ -10230,7 +10230,7 @@ function checkLatestVersion() {
|
|
|
10230
10230
|
}
|
|
10231
10231
|
}
|
|
10232
10232
|
function getCurrentVersion() {
|
|
10233
|
-
return "0.15.
|
|
10233
|
+
return "0.15.12";
|
|
10234
10234
|
}
|
|
10235
10235
|
function formatVersionLine(current, skipCheck) {
|
|
10236
10236
|
if (skipCheck) {
|
|
@@ -12443,7 +12443,7 @@ async function execute17(paths) {
|
|
|
12443
12443
|
const gm = new GenerationManager(paths);
|
|
12444
12444
|
const state = await gm.current();
|
|
12445
12445
|
const configContent = await readTextFile(paths.config);
|
|
12446
|
-
const installedVersion = "0.15.
|
|
12446
|
+
const installedVersion = "0.15.12";
|
|
12447
12447
|
const autoUpdate = configContent?.match(/autoUpdate:\s*(true|false)/)?.[1] === "true";
|
|
12448
12448
|
const versionDisplay = formatVersionLine(installedVersion, !autoUpdate);
|
|
12449
12449
|
const rawLang = detectLanguage(configContent);
|
|
@@ -14171,7 +14171,7 @@ async function execute30(paths) {
|
|
|
14171
14171
|
const lines = [
|
|
14172
14172
|
`REAP Configuration (${paths.config})`,
|
|
14173
14173
|
"",
|
|
14174
|
-
` version: ${"0.15.
|
|
14174
|
+
` version: ${"0.15.12"} (package)`,
|
|
14175
14175
|
` project: ${config.project}`,
|
|
14176
14176
|
` entryMode: ${config.entryMode}`,
|
|
14177
14177
|
` strict: ${config.strict ?? false}`,
|
|
@@ -14477,7 +14477,7 @@ async function runCommand(command, phase, argv = []) {
|
|
|
14477
14477
|
try {
|
|
14478
14478
|
const config = await ConfigManager.read(paths);
|
|
14479
14479
|
if (config.autoIssueReport) {
|
|
14480
|
-
const version = "0.15.
|
|
14480
|
+
const version = "0.15.12";
|
|
14481
14481
|
const errMsg = err instanceof Error ? err.message : String(err);
|
|
14482
14482
|
const title = `[auto] reap run ${command}: ${errMsg.slice(0, 80)}`;
|
|
14483
14483
|
const body = [
|
|
@@ -16427,7 +16427,7 @@ async function getStatus(projectRoot) {
|
|
|
16427
16427
|
const totalCompleted = await mgr.countAllCompleted();
|
|
16428
16428
|
const integrityResult = await checkIntegrity(paths);
|
|
16429
16429
|
return {
|
|
16430
|
-
version: "0.15.
|
|
16430
|
+
version: "0.15.12",
|
|
16431
16431
|
project: config.project,
|
|
16432
16432
|
entryMode: config.entryMode,
|
|
16433
16433
|
lastSyncedGeneration: config.lastSyncedGeneration,
|
|
@@ -16750,7 +16750,7 @@ init_fs();
|
|
|
16750
16750
|
init_version();
|
|
16751
16751
|
init_config();
|
|
16752
16752
|
import { join as join34 } from "path";
|
|
16753
|
-
program.name("reap").description("REAP — Recursive Evolutionary Autonomous Pipeline").version("0.15.
|
|
16753
|
+
program.name("reap").description("REAP — Recursive Evolutionary Autonomous Pipeline").version("0.15.12");
|
|
16754
16754
|
program.command("init").description("Initialize a new REAP project (Genesis)").argument("[project-name]", "Project name (defaults to current directory name)").option("-m, --mode <mode>", "Entry mode: greenfield, migration, adoption", "greenfield").option("-p, --preset <preset>", "Bootstrap with a genome preset (e.g., bun-hono-react)").action(async (projectName, options) => {
|
|
16755
16755
|
try {
|
|
16756
16756
|
const cwd = process.cwd();
|
|
@@ -16807,7 +16807,7 @@ program.command("status").description("Show current project and Generation statu
|
|
|
16807
16807
|
const paths = new ReapPaths(cwd);
|
|
16808
16808
|
const config = await ConfigManager.read(paths);
|
|
16809
16809
|
const skipCheck = config.autoUpdate === false;
|
|
16810
|
-
const installedVersion = "0.15.
|
|
16810
|
+
const installedVersion = "0.15.12";
|
|
16811
16811
|
const versionLine = formatVersionLine(installedVersion, skipCheck);
|
|
16812
16812
|
console.log(`${versionLine} | Project: ${status.project} (${status.entryMode})`);
|
|
16813
16813
|
console.log(`Completed Generations: ${status.totalGenerations}`);
|
|
@@ -16879,11 +16879,9 @@ program.command("fix").description("Diagnose and repair .reap/ directory structu
|
|
|
16879
16879
|
});
|
|
16880
16880
|
program.command("update").description("Upgrade REAP package and sync slash commands, templates, and hooks").option("--dry-run", "Show changes without applying them").action(async (options) => {
|
|
16881
16881
|
try {
|
|
16882
|
-
|
|
16883
|
-
|
|
16884
|
-
|
|
16885
|
-
console.log(`Upgraded: v${upgrade.from} → v${upgrade.to}`);
|
|
16886
|
-
}
|
|
16882
|
+
const upgrade = !options.dryRun ? selfUpgrade() : { upgraded: false };
|
|
16883
|
+
if (upgrade.upgraded) {
|
|
16884
|
+
console.log(`Upgraded: v${upgrade.from} → v${upgrade.to}`);
|
|
16887
16885
|
}
|
|
16888
16886
|
const result = await updateProject(process.cwd(), options.dryRun ?? false);
|
|
16889
16887
|
if (options.dryRun) {
|
|
@@ -16922,9 +16920,16 @@ Integrity: ✓ OK`);
|
|
|
16922
16920
|
try {
|
|
16923
16921
|
const version = getCurrentVersion();
|
|
16924
16922
|
const lang = await AgentRegistry.readLanguage() ?? "en";
|
|
16925
|
-
|
|
16926
|
-
|
|
16927
|
-
|
|
16923
|
+
if (!options.dryRun && upgrade.upgraded) {
|
|
16924
|
+
const { execSync: execSync10 } = await import("child_process");
|
|
16925
|
+
const output = execSync10(`reap --show-notice ${upgrade.to} --show-notice-lang ${lang}`, { encoding: "utf-8", timeout: 5000, stdio: ["pipe", "pipe", "pipe"] });
|
|
16926
|
+
if (output.trim())
|
|
16927
|
+
console.log(output.trimEnd());
|
|
16928
|
+
} else {
|
|
16929
|
+
const notice = fetchReleaseNotice(version, lang);
|
|
16930
|
+
if (notice)
|
|
16931
|
+
console.log(notice);
|
|
16932
|
+
}
|
|
16928
16933
|
} catch {}
|
|
16929
16934
|
} catch (e) {
|
|
16930
16935
|
console.error(`Error: ${e.message}`);
|
|
@@ -17084,4 +17089,16 @@ function prompt(question) {
|
|
|
17084
17089
|
});
|
|
17085
17090
|
});
|
|
17086
17091
|
}
|
|
17092
|
+
var showNoticeIdx = process.argv.indexOf("--show-notice");
|
|
17093
|
+
if (showNoticeIdx !== -1) {
|
|
17094
|
+
const version = process.argv[showNoticeIdx + 1] ?? "";
|
|
17095
|
+
const langIdx = process.argv.indexOf("--show-notice-lang");
|
|
17096
|
+
const lang = langIdx !== -1 ? process.argv[langIdx + 1] ?? "en" : "en";
|
|
17097
|
+
if (version) {
|
|
17098
|
+
const notice = fetchReleaseNotice(version, lang);
|
|
17099
|
+
if (notice)
|
|
17100
|
+
process.stdout.write(notice);
|
|
17101
|
+
}
|
|
17102
|
+
process.exit(0);
|
|
17103
|
+
}
|
|
17087
17104
|
program.parse();
|