@rhei-team/rhei 1.0.0-beta.2 → 1.0.0-beta.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/README.md CHANGED
@@ -750,18 +750,18 @@ bun run --cwd packages/mcp-server --silent dev:stdio
750
750
 
751
751
  ### CLI install and init
752
752
 
753
- The package exposes `mcp-server`, `rhei`, `rhei-mcp`, and `saga-mcp` binaries. The `mcp-server` alias exists so plain scoped npm execution can select the package bin, which makes this work after the bundled package is published:
753
+ The package is published as `@rhei-team/rhei` and exposes `rhei`, `rhei-mcp`, `mcp-server`, and `saga-mcp` binaries. Because the package's unscoped name is `rhei`, plain scoped execution selects the `rhei` bin directly no `--package` needed:
754
754
 
755
755
  ```bash
756
- npx -y @rhei-team/mcp-server install --target auto --yes --index
756
+ npx -y @rhei-team/rhei install --target auto --yes --index
757
757
  ```
758
758
 
759
759
  Explicit-bin forms also work:
760
760
 
761
761
  ```bash
762
- npx -y --package @rhei-team/mcp-server rhei install --target auto --yes --index
763
- bunx --package @rhei-team/mcp-server rhei install --target auto --yes --index
764
- pnpm dlx --silent --package @rhei-team/mcp-server rhei install --target auto --yes --index
762
+ npx -y --package @rhei-team/rhei rhei install --target auto --yes --index
763
+ bunx --package @rhei-team/rhei rhei install --target auto --yes --index
764
+ pnpm dlx --silent --package @rhei-team/rhei rhei install --target auto --yes --index
765
765
  ```
766
766
 
767
767
  `rhei-mcp` with no subcommand keeps the historical stdio MCP behavior; `rhei mcp` or `rhei serve` starts the MCP server explicitly.
package/dist/index.js CHANGED
@@ -603,7 +603,7 @@ function buildRheiMcpRuntimeFingerprint(moduleUrl = import.meta.url) {
603
603
  return removeUndefined2({
604
604
  kind: "rhei_mcp_runtime_fingerprint",
605
605
  schemaVersion: 1,
606
- packageName: "@rhei-team/mcp-server",
606
+ packageName: "@rhei-team/rhei",
607
607
  loadedAt: RHEI_MCP_MODULE_LOADED_AT,
608
608
  pid: typeof process === "undefined" ? undefined : process.pid,
609
609
  ppid: typeof process === "undefined" ? undefined : process.ppid,
@@ -44275,7 +44275,7 @@ function briefRheiCodeIoHits(search) {
44275
44275
  return;
44276
44276
  const sqlSymbolSearch = search["searchMode"] === "sql_symbol_index" || search["searchTargetMode"] === "symbol_path";
44277
44277
  const results = codeIoRecordList(search["results"]).slice(0, 5).map((result) => {
44278
- const matchedLines = arrayValue4(result["matchedLines"]).map((line) => asRecord8(line)).filter((line) => Boolean(line)).slice(0, 1).map((line) => removeUndefined13({
44278
+ const matchedLines = arrayValue4(result["matchedLines"]).map((line) => asRecord8(line)).filter((line) => Boolean(line)).slice(0, 4).map((line) => removeUndefined13({
44279
44279
  line: line["line"],
44280
44280
  preview: line["preview"]
44281
44281
  }));
@@ -46589,6 +46589,9 @@ function briefRheiCodeIoInspect(inspectResult) {
46589
46589
  const emittedFactCounts = asRecord8(codeStructureCoverage?.["emittedFactCounts"]);
46590
46590
  const fullSymbolCount = positiveNumber12(factCounts?.["symbols"]) ?? symbols.length;
46591
46591
  const emittedSymbolCount = positiveNumber12(emittedFactCounts?.["symbols"]);
46592
+ const structureBudget = asRecord8(inspect["codeStructureBudget"]);
46593
+ const structureBudgetCapped = structureBudget?.["tokenBudgetHit"] === true || (positiveNumber12(structureBudget?.["omittedCount"]) ?? 0) > 0;
46594
+ const reportedSymbolCount = structureBudgetCapped ? symbols.length : fullSymbolCount;
46592
46595
  const nextReadPlan = arrayValue4(inspectResult["nextReadPlan"]);
46593
46596
  const codeStructureDiagnostic = asRecord8(inspect["codeStructureDiagnostic"]) ?? asRecord8(inspectResult["codeStructureDiagnostic"]);
46594
46597
  const imports = [];
@@ -46627,8 +46630,8 @@ function briefRheiCodeIoInspect(inspectResult) {
46627
46630
  mode: inspect["mode"],
46628
46631
  codemapProfile: inspect["codemapProfile"],
46629
46632
  fileCount: files.length,
46630
- symbolCount: fullSymbolCount,
46631
- emittedSymbolCount: emittedSymbolCount !== undefined && emittedSymbolCount !== fullSymbolCount ? emittedSymbolCount : undefined,
46633
+ symbolCount: reportedSymbolCount,
46634
+ emittedSymbolCount: emittedSymbolCount !== undefined && emittedSymbolCount !== reportedSymbolCount ? emittedSymbolCount : undefined,
46632
46635
  importCount: imports.length,
46633
46636
  functionSignatureCount: functionSignatures.length,
46634
46637
  codeStructureContent,
@@ -52711,7 +52714,7 @@ var RheiPremiumContextPlanRequestV1Schema = z2.object({
52711
52714
  schemaVersion: z2.literal(1),
52712
52715
  feature: RheiPremiumFeatureV1Schema,
52713
52716
  client: z2.object({
52714
- packageName: z2.enum(["@rhei-team/mcp-server", "@rhei/mcp-server"]),
52717
+ packageName: z2.enum(["@rhei-team/rhei", "@rhei-team/mcp-server", "@rhei/mcp-server"]),
52715
52718
  packageVersion: z2.string(),
52716
52719
  commandRunner: z2.enum(["npm", "npx", "bunx", "pnpm", "pnpm_dlx", "local", "unknown"]).optional(),
52717
52720
  capabilities: z2.array(z2.string())
@@ -53176,7 +53179,7 @@ async function resolvePremiumContextPlan(args) {
53176
53179
  schemaVersion: 1,
53177
53180
  feature: args.boundary.requestedFeature,
53178
53181
  client: {
53179
- packageName: "@rhei-team/mcp-server",
53182
+ packageName: "@rhei-team/rhei",
53180
53183
  packageVersion: SERVER_VERSION,
53181
53184
  commandRunner: "local",
53182
53185
  capabilities: ["context_builder", "local_candidates", "advisory_ranked_refs"]
@@ -70711,7 +70714,7 @@ async function checkCodexConfig(explicitPath) {
70711
70714
  try {
70712
70715
  const content = await readFile19(path, "utf8");
70713
70716
  const lower = content.toLowerCase();
70714
- const mentionsRheiServer = lower.includes("mcp_servers.rhei") || lower.includes("rhei-mcp") || lower.includes("mcp:rhei") || lower.includes("@rhei-team/mcp-server") || lower.includes("@rhei/mcp-server");
70717
+ const mentionsRheiServer = lower.includes("mcp_servers.rhei") || lower.includes("rhei-mcp") || lower.includes("mcp:rhei") || lower.includes("@rhei-team/rhei") || lower.includes("@rhei-team/mcp-server") || lower.includes("@rhei/mcp-server");
70715
70718
  const usesBunCommand = lower.includes('command = "bun"') || lower.includes("command='bun'") || lower.includes("bun run");
70716
70719
  const configured = mentionsRheiServer && usesBunCommand;
70717
70720
  notes.push("Config probe is redacted: doctor reports only file presence, server-entry shape, and command family; it does not echo secrets or environment values.");
@@ -77530,7 +77533,7 @@ function shellQuote(value) {
77530
77533
  return `'${value.replace(/'/g, "'\\''")}'`;
77531
77534
  }
77532
77535
  function inferPackageRunnerConfig() {
77533
- const packageSpec = process.env["RHEI_MCP_INSTALL_PACKAGE"]?.trim() || "@rhei-team/mcp-server";
77536
+ const packageSpec = process.env["RHEI_MCP_INSTALL_PACKAGE"]?.trim() || "@rhei-team/rhei";
77534
77537
  const npmCommand = process.env["npm_command"] ?? "";
77535
77538
  const npmExecPath = process.env["npm_execpath"] ?? "";
77536
77539
  const userAgent = process.env["npm_config_user_agent"] ?? "";
@@ -78620,13 +78623,13 @@ function updateCommandForMode(mode) {
78620
78623
  if (mode === "source_checkout")
78621
78624
  return "pull the local Rhei checkout and rebuild if needed";
78622
78625
  if (mode === "bunx")
78623
- return "bunx --package @rhei-team/mcp-server@latest rhei install --target auto --yes";
78626
+ return "bunx --package @rhei-team/rhei@latest rhei install --target auto --yes";
78624
78627
  if (mode === "npx")
78625
- return "npx -y --package @rhei-team/mcp-server@latest rhei install --target auto --yes";
78628
+ return "npx -y --package @rhei-team/rhei@latest rhei install --target auto --yes";
78626
78629
  if (mode === "pnpm_dlx")
78627
- return "pnpm dlx --package @rhei-team/mcp-server@latest rhei install --target auto --yes";
78630
+ return "pnpm dlx --package @rhei-team/rhei@latest rhei install --target auto --yes";
78628
78631
  if (mode === "global_binary")
78629
- return "npm install -g @rhei-team/mcp-server@latest && rhei install --target auto --yes";
78632
+ return "npm install -g @rhei-team/rhei@latest && rhei install --target auto --yes";
78630
78633
  return "rhei update --yes";
78631
78634
  }
78632
78635
  async function resolveLatestVersion(mode) {
@@ -127,18 +127,18 @@ export declare const RheiPremiumContextPlanRequestV1Schema: z.ZodObject<{
127
127
  schemaVersion: z.ZodLiteral<1>;
128
128
  feature: z.ZodEnum<["premium_context_rerank", "premium_graph_expand", "premium_service_enrichment", "premium_drift_signals"]>;
129
129
  client: z.ZodObject<{
130
- packageName: z.ZodEnum<["@rhei-team/mcp-server", "@rhei/mcp-server"]>;
130
+ packageName: z.ZodEnum<["@rhei-team/rhei", "@rhei-team/mcp-server", "@rhei/mcp-server"]>;
131
131
  packageVersion: z.ZodString;
132
132
  commandRunner: z.ZodOptional<z.ZodEnum<["npm", "npx", "bunx", "pnpm", "pnpm_dlx", "local", "unknown"]>>;
133
133
  capabilities: z.ZodArray<z.ZodString, "many">;
134
134
  }, "strip", z.ZodTypeAny, {
135
135
  capabilities: string[];
136
- packageName: "@rhei-team/mcp-server" | "@rhei/mcp-server";
136
+ packageName: "@rhei-team/rhei" | "@rhei-team/mcp-server" | "@rhei/mcp-server";
137
137
  packageVersion: string;
138
138
  commandRunner?: "unknown" | "local" | "npm" | "npx" | "bunx" | "pnpm" | "pnpm_dlx" | undefined;
139
139
  }, {
140
140
  capabilities: string[];
141
- packageName: "@rhei-team/mcp-server" | "@rhei/mcp-server";
141
+ packageName: "@rhei-team/rhei" | "@rhei-team/mcp-server" | "@rhei/mcp-server";
142
142
  packageVersion: string;
143
143
  commandRunner?: "unknown" | "local" | "npm" | "npx" | "bunx" | "pnpm" | "pnpm_dlx" | undefined;
144
144
  }>;
@@ -249,7 +249,7 @@ export declare const RheiPremiumContextPlanRequestV1Schema: z.ZodObject<{
249
249
  feature: "premium_context_rerank" | "premium_graph_expand" | "premium_service_enrichment" | "premium_drift_signals";
250
250
  client: {
251
251
  capabilities: string[];
252
- packageName: "@rhei-team/mcp-server" | "@rhei/mcp-server";
252
+ packageName: "@rhei-team/rhei" | "@rhei-team/mcp-server" | "@rhei/mcp-server";
253
253
  packageVersion: string;
254
254
  commandRunner?: "unknown" | "local" | "npm" | "npx" | "bunx" | "pnpm" | "pnpm_dlx" | undefined;
255
255
  };
@@ -287,7 +287,7 @@ export declare const RheiPremiumContextPlanRequestV1Schema: z.ZodObject<{
287
287
  feature: "premium_context_rerank" | "premium_graph_expand" | "premium_service_enrichment" | "premium_drift_signals";
288
288
  client: {
289
289
  capabilities: string[];
290
- packageName: "@rhei-team/mcp-server" | "@rhei/mcp-server";
290
+ packageName: "@rhei-team/rhei" | "@rhei-team/mcp-server" | "@rhei/mcp-server";
291
291
  packageVersion: string;
292
292
  commandRunner?: "unknown" | "local" | "npm" | "npx" | "bunx" | "pnpm" | "pnpm_dlx" | undefined;
293
293
  };
@@ -45,7 +45,7 @@ export const RheiPremiumContextPlanRequestV1Schema = z.object({
45
45
  schemaVersion: z.literal(1),
46
46
  feature: RheiPremiumFeatureV1Schema,
47
47
  client: z.object({
48
- packageName: z.enum(["@rhei-team/mcp-server", "@rhei/mcp-server"]),
48
+ packageName: z.enum(["@rhei-team/rhei", "@rhei-team/mcp-server", "@rhei/mcp-server"]),
49
49
  packageVersion: z.string(),
50
50
  commandRunner: z.enum(["npm", "npx", "bunx", "pnpm", "pnpm_dlx", "local", "unknown"]).optional(),
51
51
  capabilities: z.array(z.string()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhei-team/rhei",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "Local-first MCP server for Rhei Code Context and governed agent handoffs",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",