repowise 0.1.18 → 0.1.20

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.
@@ -1390,7 +1390,19 @@ async function create() {
1390
1390
  continue;
1391
1391
  }
1392
1392
  if (syncResult.status === "completed") {
1393
- spinner.succeed("Context generation complete");
1393
+ const fileCount = syncResult.filesGenerated?.length ?? 0;
1394
+ if (fileCount > 0) {
1395
+ spinner.succeed(`Context generation complete (${fileCount} files)`);
1396
+ } else {
1397
+ spinner.warn(
1398
+ chalk5.yellow("Pipeline completed but no context files were generated.")
1399
+ );
1400
+ console.log(
1401
+ chalk5.yellow(
1402
+ " This may be due to AI throttling or a parsing issue. Try running `repowise create` again."
1403
+ )
1404
+ );
1405
+ }
1394
1406
  break;
1395
1407
  }
1396
1408
  if (syncResult.status === "failed") {
@@ -1425,6 +1437,13 @@ You may need to run \`git pull\` manually.`
1425
1437
  if (repoRoot) {
1426
1438
  contextFiles = await scanLocalContextFiles(repoRoot, contextFolder);
1427
1439
  }
1440
+ if (contextFiles.length === 0) {
1441
+ console.log(
1442
+ chalk5.yellow(
1443
+ ` No context files found in ${contextFolder}/. You may need to run \`git pull\` manually or re-run \`repowise create\`.`
1444
+ )
1445
+ );
1446
+ }
1428
1447
  if (tools.length > 0 && repoRoot) {
1429
1448
  spinner.start("Configuring AI tools...");
1430
1449
  const results = [];
@@ -2327,39 +2346,32 @@ import { Command } from "commander";
2327
2346
  // src/lib/welcome.ts
2328
2347
  init_config();
2329
2348
  import chalk from "chalk";
2349
+ var W = 41;
2350
+ function row(styled, visible) {
2351
+ return chalk.cyan(" \u2502") + styled + " ".repeat(W - visible) + chalk.cyan("\u2502");
2352
+ }
2330
2353
  async function showWelcome(currentVersion) {
2331
2354
  try {
2332
2355
  const config2 = await getConfig();
2333
2356
  if (config2.lastSeenVersion === currentVersion) return;
2334
2357
  const isUpgrade = !!config2.lastSeenVersion;
2358
+ const tag = isUpgrade ? "updated" : "installed";
2359
+ const titleText = `RepoWise v${currentVersion}`;
2360
+ const titleStyled = " " + chalk.bold(titleText) + chalk.green(` \u2713 ${tag}`);
2361
+ const titleVisible = 3 + titleText.length + 3 + tag.length;
2362
+ const border = "\u2500".repeat(W);
2335
2363
  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(
2349
- chalk.cyan(" \u2502 ") + chalk.dim("Get started:") + chalk.cyan(" \u2502")
2350
- );
2351
- console.log(
2352
- chalk.cyan(" \u2502 $ ") + chalk.bold("repowise create") + chalk.cyan(" \u2502")
2353
- );
2354
- console.log(chalk.cyan(" \u2502 \u2502"));
2355
- console.log(
2356
- chalk.cyan(" \u2502 ") + chalk.dim("Thank you for using RepoWise!") + chalk.cyan(" \u2502")
2357
- );
2358
- console.log(
2359
- chalk.cyan(" \u2502 ") + chalk.dim("https://repowise.ai") + chalk.cyan(" \u2502")
2360
- );
2361
- console.log(chalk.cyan(" \u2502 \u2502"));
2362
- 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"));
2364
+ console.log(chalk.cyan(` \u256D${border}\u256E`));
2365
+ console.log(row("", 0));
2366
+ console.log(row(titleStyled, titleVisible));
2367
+ console.log(row("", 0));
2368
+ console.log(row(" " + chalk.dim("Get started:"), 15));
2369
+ console.log(row(" $ " + chalk.bold("repowise create"), 22));
2370
+ console.log(row("", 0));
2371
+ console.log(row(" " + chalk.dim("Thank you for using RepoWise!"), 32));
2372
+ console.log(row(" " + chalk.dim("https://repowise.ai"), 22));
2373
+ console.log(row("", 0));
2374
+ console.log(chalk.cyan(` \u2570${border}\u256F`));
2363
2375
  console.log("");
2364
2376
  await saveConfig({ ...config2, lastSeenVersion: currentVersion });
2365
2377
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repowise",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {