@c-d-cc/reap 0.15.8 → 0.15.10

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release Notices
2
2
 
3
+ ## v0.15.10
4
+ ### en
5
+ Fixed release notice language matching (e.g. "korean" → "ko").
6
+ ### ko
7
+ 릴리스 공지 언어 매칭 수정 (예: "korean" → "ko").
8
+
9
+ ## v0.15.9
10
+ ### en
11
+ Fixed release notice not displaying after `reap update`. Path resolution now uses `require.resolve` instead of `__dirname`.
12
+ ### ko
13
+ `reap update` 후 릴리스 공지가 표시되지 않던 문제 수정. 경로 탐색을 `__dirname` 대신 `require.resolve` 사용으로 변경.
14
+
3
15
  ## v0.15.8
4
16
  ### en
5
17
  Removed `version` field from config.yml. No more uncommitted changes after `reap update`.
package/dist/cli.js CHANGED
@@ -10230,7 +10230,7 @@ function checkLatestVersion() {
10230
10230
  }
10231
10231
  }
10232
10232
  function getCurrentVersion() {
10233
- return "0.15.8";
10233
+ return "0.15.10";
10234
10234
  }
10235
10235
  function formatVersionLine(current, skipCheck) {
10236
10236
  if (skipCheck) {
@@ -12429,7 +12429,7 @@ async function execute17(paths) {
12429
12429
  const gm = new GenerationManager(paths);
12430
12430
  const state = await gm.current();
12431
12431
  const configContent = await readTextFile(paths.config);
12432
- const installedVersion = "0.15.8";
12432
+ const installedVersion = "0.15.10";
12433
12433
  const autoUpdate = configContent?.match(/autoUpdate:\s*(true|false)/)?.[1] === "true";
12434
12434
  const versionDisplay = formatVersionLine(installedVersion, !autoUpdate);
12435
12435
  const rawLang = detectLanguage(configContent);
@@ -14178,7 +14178,7 @@ async function execute30(paths) {
14178
14178
  const lines = [
14179
14179
  `REAP Configuration (${paths.config})`,
14180
14180
  "",
14181
- ` version: ${"0.15.8"} (package)`,
14181
+ ` version: ${"0.15.10"} (package)`,
14182
14182
  ` project: ${config.project}`,
14183
14183
  ` entryMode: ${config.entryMode}`,
14184
14184
  ` strict: ${config.strict ?? false}`,
@@ -14484,7 +14484,7 @@ async function runCommand(command, phase, argv = []) {
14484
14484
  try {
14485
14485
  const config = await ConfigManager.read(paths);
14486
14486
  if (config.autoIssueReport) {
14487
- const version = "0.15.8";
14487
+ const version = "0.15.10";
14488
14488
  const errMsg = err instanceof Error ? err.message : String(err);
14489
14489
  const title = `[auto] reap run ${command}: ${errMsg.slice(0, 80)}`;
14490
14490
  const body = [
@@ -16361,11 +16361,18 @@ async function removeDirIfExists(dirPath, label, dryRun, result) {
16361
16361
 
16362
16362
  // src/core/notice.ts
16363
16363
  import { readFileSync } from "fs";
16364
- import { join as join14 } from "path";
16365
- var __dirname = "/home/runner/work/reap/reap/src/core";
16364
+ import { join as join14, dirname as dirname2 } from "path";
16365
+ function findPackageRoot() {
16366
+ try {
16367
+ const pkgPath = __require.resolve("@c-d-cc/reap/package.json");
16368
+ return dirname2(pkgPath);
16369
+ } catch {
16370
+ return process.cwd();
16371
+ }
16372
+ }
16366
16373
  function fetchReleaseNotice(version, language) {
16367
16374
  try {
16368
- const noticePath = join14(__dirname, "../../RELEASE_NOTICE.md");
16375
+ const noticePath = join14(findPackageRoot(), "RELEASE_NOTICE.md");
16369
16376
  const content = readFileSync(noticePath, "utf-8");
16370
16377
  const versionTag = version.startsWith("v") ? version : `v${version}`;
16371
16378
  const versionPattern = new RegExp(`^## ${versionTag.replace(/\./g, "\\.")}\\s*$`, "m");
@@ -16376,7 +16383,18 @@ function fetchReleaseNotice(version, language) {
16376
16383
  const rest = content.slice(start);
16377
16384
  const nextVersion = rest.search(/^## v/m);
16378
16385
  const section = nextVersion === -1 ? rest : rest.slice(0, nextVersion);
16379
- const lang = language.toLowerCase();
16386
+ const LANG_MAP = {
16387
+ korean: "ko",
16388
+ english: "en",
16389
+ japanese: "ja",
16390
+ chinese: "zh-cn",
16391
+ spanish: "es",
16392
+ french: "fr",
16393
+ german: "de",
16394
+ portuguese: "pt"
16395
+ };
16396
+ const raw = language.toLowerCase();
16397
+ const lang = LANG_MAP[raw] ?? raw;
16380
16398
  const langPattern = new RegExp(`^### ${lang}\\s*$`, "im");
16381
16399
  const langMatch = langPattern.exec(section);
16382
16400
  if (!langMatch) {
@@ -16416,7 +16434,7 @@ async function getStatus(projectRoot) {
16416
16434
  const totalCompleted = await mgr.countAllCompleted();
16417
16435
  const integrityResult = await checkIntegrity(paths);
16418
16436
  return {
16419
- version: "0.15.8",
16437
+ version: "0.15.10",
16420
16438
  project: config.project,
16421
16439
  entryMode: config.entryMode,
16422
16440
  lastSyncedGeneration: config.lastSyncedGeneration,
@@ -16739,7 +16757,7 @@ init_fs();
16739
16757
  init_version();
16740
16758
  init_config();
16741
16759
  import { join as join34 } from "path";
16742
- program.name("reap").description("REAP — Recursive Evolutionary Autonomous Pipeline").version("0.15.8");
16760
+ program.name("reap").description("REAP — Recursive Evolutionary Autonomous Pipeline").version("0.15.10");
16743
16761
  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) => {
16744
16762
  try {
16745
16763
  const cwd = process.cwd();
@@ -16796,7 +16814,7 @@ program.command("status").description("Show current project and Generation statu
16796
16814
  const paths = new ReapPaths(cwd);
16797
16815
  const config = await ConfigManager.read(paths);
16798
16816
  const skipCheck = config.autoUpdate === false;
16799
- const installedVersion = "0.15.8";
16817
+ const installedVersion = "0.15.10";
16800
16818
  const versionLine = formatVersionLine(installedVersion, skipCheck);
16801
16819
  console.log(`${versionLine} | Project: ${status.project} (${status.entryMode})`);
16802
16820
  console.log(`Completed Generations: ${status.totalGenerations}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c-d-cc/reap",
3
- "version": "0.15.8",
3
+ "version": "0.15.10",
4
4
  "description": "Recursive Evolutionary Autonomous Pipeline — AI and humans evolve software across generations",
5
5
  "type": "module",
6
6
  "license": "MIT",