@hiveai/cli 0.7.1 → 0.7.2

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/index.js CHANGED
@@ -610,12 +610,15 @@ function inferModuleDescriptions(dirs, frameworks = []) {
610
610
  "shared": "shared code across modules"
611
611
  };
612
612
  const isNestJS = frameworks.includes("NestJS");
613
+ const isSrcBased = isNestJS || frameworks.some((f) => ["Express", "Fastify", "Hono", "tRPC", "Apollo", "GraphQL"].includes(f));
614
+ const isFrontend = frameworks.some((f) => ["React", "Vue", "Svelte", "SvelteKit", "Astro"].includes(f));
613
615
  const srcSubdirs = dirs.filter((d) => d.startsWith("src/") && d.split("/").length === 2);
614
- if (isNestJS && srcSubdirs.length >= 2) {
615
- const result = [`- \`src/\` \u2014 main source (NestJS feature modules)`];
616
+ if (isSrcBased && srcSubdirs.length >= 2 || isFrontend && srcSubdirs.length >= 3) {
617
+ const label = isNestJS ? "main source (NestJS feature modules)" : "main source";
618
+ const result = [`- \`src/\` \u2014 ${label}`];
616
619
  for (const d of srcSubdirs.slice(0, 12)) {
617
620
  const name = d.split("/")[1];
618
- const desc = known[name.toLowerCase()] ?? "feature module";
621
+ const desc = known[name.toLowerCase()] ?? "module";
619
622
  result.push(` - \`${name}/\` \u2014 ${desc}`);
620
623
  }
621
624
  const otherTopLevel = dirs.filter((d) => !d.includes("/") && d !== "src").slice(0, 6);
@@ -5565,7 +5568,7 @@ function runCommand(cmd, args, cwd) {
5565
5568
 
5566
5569
  // src/index.ts
5567
5570
  var program = new Command39();
5568
- program.name("haive").description("hAIve \u2014 team-first persistent memory layer for AI coding agents").version("0.7.1");
5571
+ program.name("haive").description("hAIve \u2014 team-first persistent memory layer for AI coding agents").version("0.7.2");
5569
5572
  registerInit(program);
5570
5573
  registerMcp(program);
5571
5574
  registerBriefing(program);