repowise 0.1.17 → 0.1.19

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.
@@ -2319,43 +2319,40 @@ var init_config3 = __esm({
2319
2319
 
2320
2320
  // bin/repowise.ts
2321
2321
  init_env();
2322
- import { Command } from "commander";
2323
2322
  import { readFileSync } from "fs";
2324
2323
  import { fileURLToPath as fileURLToPath3 } from "url";
2325
2324
  import { dirname as dirname2, join as join12 } from "path";
2325
+ import { Command } from "commander";
2326
2326
 
2327
2327
  // src/lib/welcome.ts
2328
2328
  init_config();
2329
2329
  import chalk from "chalk";
2330
+ var W = 41;
2331
+ function row(styled, visible) {
2332
+ return chalk.cyan(" \u2502") + styled + " ".repeat(W - visible) + chalk.cyan("\u2502");
2333
+ }
2330
2334
  async function showWelcome(currentVersion) {
2331
2335
  try {
2332
2336
  const config2 = await getConfig();
2333
2337
  if (config2.lastSeenVersion === currentVersion) return;
2334
2338
  const isUpgrade = !!config2.lastSeenVersion;
2339
+ const tag = isUpgrade ? "updated" : "installed";
2340
+ const titleText = `RepoWise v${currentVersion}`;
2341
+ const titleStyled = " " + chalk.bold(titleText) + chalk.green(` \u2713 ${tag}`);
2342
+ const titleVisible = 3 + titleText.length + 3 + tag.length;
2343
+ const border = "\u2500".repeat(W);
2335
2344
  console.log("");
2336
- console.log(chalk.cyan(" \u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E"));
2337
- console.log(chalk.cyan(" \u2502 \u2502"));
2338
- if (isUpgrade) {
2339
- console.log(
2340
- chalk.cyan(" \u2502 ") + chalk.bold(`RepoWise v${currentVersion}`) + chalk.green(" \u2713 updated") + chalk.cyan(" \u2502")
2341
- );
2342
- } else {
2343
- console.log(
2344
- chalk.cyan(" \u2502 ") + chalk.bold(`RepoWise v${currentVersion}`) + chalk.green(" \u2713 installed") + chalk.cyan(" \u2502")
2345
- );
2346
- }
2347
- console.log(chalk.cyan(" \u2502 \u2502"));
2348
- console.log(chalk.cyan(" \u2502 ") + chalk.dim("Get started:") + chalk.cyan(" \u2502"));
2349
- console.log(
2350
- chalk.cyan(" \u2502 $ ") + chalk.bold("repowise create") + chalk.cyan(" \u2502")
2351
- );
2352
- console.log(chalk.cyan(" \u2502 \u2502"));
2353
- console.log(
2354
- chalk.cyan(" \u2502 ") + chalk.dim("Thank you for using RepoWise!") + chalk.cyan(" \u2502")
2355
- );
2356
- console.log(chalk.cyan(" \u2502 ") + chalk.dim("https://repowise.ai") + chalk.cyan(" \u2502"));
2357
- console.log(chalk.cyan(" \u2502 \u2502"));
2358
- console.log(chalk.cyan(" \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F"));
2345
+ console.log(chalk.cyan(` \u256D${border}\u256E`));
2346
+ console.log(row("", 0));
2347
+ console.log(row(titleStyled, titleVisible));
2348
+ console.log(row("", 0));
2349
+ console.log(row(" " + chalk.dim("Get started:"), 15));
2350
+ console.log(row(" $ " + chalk.bold("repowise create"), 22));
2351
+ console.log(row("", 0));
2352
+ console.log(row(" " + chalk.dim("Thank you for using RepoWise!"), 32));
2353
+ console.log(row(" " + chalk.dim("https://repowise.ai"), 22));
2354
+ console.log(row("", 0));
2355
+ console.log(chalk.cyan(` \u2570${border}\u256F`));
2359
2356
  console.log("");
2360
2357
  await saveConfig({ ...config2, lastSeenVersion: currentVersion });
2361
2358
  } catch {
@@ -2365,7 +2362,7 @@ async function showWelcome(currentVersion) {
2365
2362
  // bin/repowise.ts
2366
2363
  var __filename = fileURLToPath3(import.meta.url);
2367
2364
  var __dirname = dirname2(__filename);
2368
- var pkg = JSON.parse(readFileSync(join12(__dirname, "..", "package.json"), "utf-8"));
2365
+ var pkg = JSON.parse(readFileSync(join12(__dirname, "..", "..", "package.json"), "utf-8"));
2369
2366
  var program = new Command();
2370
2367
  program.name("repowise").description("AI-optimized codebase context generator").version(pkg.version).option("--staging", "Use the staging environment").hook("preAction", async () => {
2371
2368
  if (program.opts()["staging"]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repowise",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {