@hiveai/mcp 0.10.9 → 0.12.0
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 +410 -338
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +14 -3
- package/dist/server.js +410 -338
- package/dist/server.js.map +1 -1
- package/package.json +3 -3
package/dist/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
2
|
import * as _hiveai_core from '@hiveai/core';
|
|
3
|
-
import { HaivePaths, ConfidenceLevel, resolveProjectInfo, readRuntimeJournalTail } from '@hiveai/core';
|
|
3
|
+
import { HaivePaths, ConfidenceLevel, ImpactTier, resolveProjectInfo, readRuntimeJournalTail } from '@hiveai/core';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
6
|
interface HaiveContext {
|
|
@@ -40,6 +40,10 @@ interface BriefingMemory {
|
|
|
40
40
|
/** Present when confidence is 'low' or 'unverified' — AI should weight this memory cautiously. */
|
|
41
41
|
unverified?: true;
|
|
42
42
|
read_count: number;
|
|
43
|
+
/** Demonstrated-utility score in [0,1] from the closed-loop impact layer (reads + applied + sensor fires vs rejections/stale/dormancy). */
|
|
44
|
+
impact_score?: number;
|
|
45
|
+
/** Impact tier derived from {@link impact_score}. A nudge in ranking; surfaced for transparency. */
|
|
46
|
+
impact_tier?: ImpactTier;
|
|
43
47
|
reasons: Array<"anchor" | "module" | "domain" | "semantic" | "symbol">;
|
|
44
48
|
match_quality: "exact" | "partial" | "semantic";
|
|
45
49
|
semantic_score?: number;
|
|
@@ -357,6 +361,13 @@ interface AntiPatternsWarning {
|
|
|
357
361
|
confidence: string;
|
|
358
362
|
body_preview: string;
|
|
359
363
|
reasons: Array<"anchor" | "literal" | "semantic" | "sensor">;
|
|
364
|
+
/**
|
|
365
|
+
* True when the LITERAL overlap includes a token that is *distinctive* to this memory
|
|
366
|
+
* (rare across the gotcha corpus) — e.g. `BigInt`, `open-in-view`. Only a distinctive
|
|
367
|
+
* literal overlap is precise enough to hard-block; a shared common word ("memory",
|
|
368
|
+
* "scope", "version") sets only the `literal` reason for review. Powers the gate.
|
|
369
|
+
*/
|
|
370
|
+
distinctive_literal?: boolean;
|
|
360
371
|
semantic_score?: number;
|
|
361
372
|
/** When a regex sensor fired: its self-correction message and severity. */
|
|
362
373
|
sensor_message?: string;
|
|
@@ -702,8 +713,8 @@ declare const SERVER_NAME = "haive";
|
|
|
702
713
|
declare const SERVER_VERSION: string;
|
|
703
714
|
type ToolProfile = "enforcement" | "maintenance" | "experimental" | "full";
|
|
704
715
|
declare const ENFORCEMENT_PROFILE_TOOLS: readonly ["get_briefing", "mem_save", "mem_tried", "mem_search", "mem_get", "mem_verify", "mem_relevant_to", "code_map", "code_search", "pre_commit_check", "mem_session_end"];
|
|
705
|
-
declare const MAINTENANCE_PROFILE_TOOLS: readonly ["get_briefing", "mem_save", "mem_tried", "mem_search", "mem_get", "mem_verify", "mem_relevant_to", "code_map", "code_search", "pre_commit_check", "mem_session_end", "mem_suggest_topic", "mem_for_files", "mem_list", "get_project_context", "bootstrap_project_save", "mem_resolve_project", "mem_update", "mem_approve", "mem_reject", "mem_pending", "mem_delete", "mem_diff", "get_recap", "anti_patterns_check", "mem_distill", "mem_timeline", "mem_conflict_candidates"];
|
|
706
|
-
declare const EXPERIMENTAL_PROFILE_TOOLS: readonly ["get_briefing", "mem_save", "mem_tried", "mem_search", "mem_get", "mem_verify", "mem_relevant_to", "code_map", "code_search", "pre_commit_check", "mem_session_end", "mem_suggest_topic", "mem_for_files", "mem_list", "get_project_context", "bootstrap_project_save", "mem_resolve_project", "mem_update", "mem_approve", "mem_reject", "mem_pending", "mem_delete", "mem_diff", "get_recap", "anti_patterns_check", "mem_distill", "mem_timeline", "mem_conflict_candidates", "mem_observe", "why_this_file", "why_this_decision", "mem_conflicts_with", "pattern_detect", "runtime_journal_append", "runtime_journal_tail"];
|
|
716
|
+
declare const MAINTENANCE_PROFILE_TOOLS: readonly ["get_briefing", "mem_save", "mem_tried", "mem_search", "mem_get", "mem_verify", "mem_relevant_to", "code_map", "code_search", "pre_commit_check", "mem_session_end", "mem_suggest_topic", "mem_for_files", "mem_list", "get_project_context", "bootstrap_project_save", "mem_resolve_project", "mem_update", "mem_approve", "mem_reject", "mem_pending", "mem_delete", "mem_diff", "get_recap", "anti_patterns_check", "mem_distill", "mem_timeline", "mem_conflict_candidates", "mem_feedback"];
|
|
717
|
+
declare const EXPERIMENTAL_PROFILE_TOOLS: readonly ["get_briefing", "mem_save", "mem_tried", "mem_search", "mem_get", "mem_verify", "mem_relevant_to", "code_map", "code_search", "pre_commit_check", "mem_session_end", "mem_suggest_topic", "mem_for_files", "mem_list", "get_project_context", "bootstrap_project_save", "mem_resolve_project", "mem_update", "mem_approve", "mem_reject", "mem_pending", "mem_delete", "mem_diff", "get_recap", "anti_patterns_check", "mem_distill", "mem_timeline", "mem_conflict_candidates", "mem_feedback", "mem_observe", "why_this_file", "why_this_decision", "mem_conflicts_with", "pattern_detect", "runtime_journal_append", "runtime_journal_tail"];
|
|
707
718
|
declare const TOOL_PROFILES: Record<Exclude<ToolProfile, "full">, ReadonlySet<string>>;
|
|
708
719
|
declare function getAllowedToolsForProfile(profile: ToolProfile): ReadonlySet<string>;
|
|
709
720
|
declare function createHaiveServer(options?: CreateContextOptions): {
|