@hiveai/cli 0.4.1 → 0.4.3

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
@@ -56,8 +56,8 @@ function registerBriefing(program2) {
56
56
  'Print the full project briefing: last session recap + project context + relevant memories.\n Equivalent to calling get_briefing via MCP. Run before starting any task.\n\n Examples:\n haive briefing\n haive briefing --task "add Stripe payment" --files src/payments/PaymentService.ts\n haive briefing --symbols PaymentService,TenantFilter # look up where symbols live\n'
57
57
  ).option("--task <text>", "what you are about to do \u2014 filters memories by relevance").option("--files <csv>", "comma-separated file paths being worked on (surfaces anchored memories)").option("--symbols <csv>", "symbol names to look up in the code-map (e.g. PaymentService,TenantFilter) \u2014 requires haive index code").option("--max-memories <n>", "cap on memories surfaced", "10").option(
58
58
  "--scope <scope>",
59
- "personal | team | module | all (default: team)",
60
- "team"
59
+ "personal | team | shared | all (default: all \u2014 includes team + shared cross-repo memories)",
60
+ "all"
61
61
  ).option("--include-draft", "include draft memories (excluded by default)").option("--include-stale", "include stale memories (excluded by default \u2014 may be outdated)").option("-d, --dir <dir>", "project root").action(async (opts) => {
62
62
  const root = findProjectRoot(opts.dir);
63
63
  const paths = resolveHaivePaths(root);
@@ -75,7 +75,7 @@ function registerBriefing(program2) {
75
75
  const filePaths = parseCsv(opts.files);
76
76
  const tokens = opts.task ? tokenizeQuery(opts.task) : null;
77
77
  const maxMemories = Math.max(1, Number(opts.maxMemories ?? 10));
78
- const scopeFilter = opts.scope ?? "team";
78
+ const scopeFilter = opts.scope ?? "all";
79
79
  const recaps = all.filter(({ memory: mem }) => mem.frontmatter.type === "session_recap").sort(
80
80
  (a, b) => new Date(b.memory.frontmatter.created_at).getTime() - new Date(a.memory.frontmatter.created_at).getTime()
81
81
  );
@@ -116,7 +116,7 @@ function registerBriefing(program2) {
116
116
  if (fm.status === "rejected" || fm.status === "deprecated") return false;
117
117
  if (!opts.includeDraft && fm.status === "draft") return false;
118
118
  if (!opts.includeStale && fm.status === "stale") return false;
119
- if (scopeFilter !== "all" && fm.scope !== scopeFilter) return false;
119
+ if (scopeFilter !== "all" && fm.scope !== scopeFilter && !(scopeFilter === "team" && fm.scope === "shared")) return false;
120
120
  if (fm.type === "session_recap") return false;
121
121
  return true;
122
122
  });
@@ -3328,7 +3328,7 @@ Next steps:
3328
3328
 
3329
3329
  // src/index.ts
3330
3330
  var program = new Command32();
3331
- program.name("haive").description("hAIve \u2014 team-first persistent memory layer for AI coding agents").version("0.4.1");
3331
+ program.name("haive").description("hAIve \u2014 team-first persistent memory layer for AI coding agents").version("0.4.3");
3332
3332
  registerInit(program);
3333
3333
  registerMcp(program);
3334
3334
  registerBriefing(program);