@hiveai/mcp 0.9.2 → 0.9.5
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 +288 -29
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +95 -9
- package/dist/server.js +292 -29
- package/dist/server.js.map +1 -1
- package/package.json +3 -3
package/dist/server.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
import
|
|
2
|
+
import * as _hiveai_core from '@hiveai/core';
|
|
3
|
+
import { HaivePaths, ConfidenceLevel, resolveProjectInfo } from '@hiveai/core';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
|
|
5
6
|
interface HaiveContext {
|
|
@@ -23,7 +24,8 @@ declare class SessionTracker {
|
|
|
23
24
|
private registerShutdownHandler;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
/** Single inferred type — optional keys are optional (not `| undefined` required everywhere). */
|
|
28
|
+
declare const GetBriefingZod: z.ZodObject<{
|
|
27
29
|
task: z.ZodOptional<z.ZodString>;
|
|
28
30
|
files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
29
31
|
max_tokens: z.ZodDefault<z.ZodNumber>;
|
|
@@ -33,13 +35,40 @@ declare const GetBriefingInputSchema: {
|
|
|
33
35
|
semantic: z.ZodDefault<z.ZodBoolean>;
|
|
34
36
|
include_stale: z.ZodDefault<z.ZodBoolean>;
|
|
35
37
|
track: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
-
format: z.ZodDefault<z.ZodEnum<["full", "compact"]>>;
|
|
38
|
+
format: z.ZodDefault<z.ZodEnum<["full", "compact", "actions"]>>;
|
|
37
39
|
symbols: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
38
40
|
min_semantic_score: z.ZodDefault<z.ZodNumber>;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
budget_preset: z.ZodOptional<z.ZodEnum<["quick", "balanced", "deep"]>>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
symbols: string[];
|
|
44
|
+
files: string[];
|
|
45
|
+
max_tokens: number;
|
|
46
|
+
max_memories: number;
|
|
47
|
+
include_project_context: boolean;
|
|
48
|
+
include_module_contexts: boolean;
|
|
49
|
+
semantic: boolean;
|
|
50
|
+
include_stale: boolean;
|
|
51
|
+
track: boolean;
|
|
52
|
+
format: "full" | "compact" | "actions";
|
|
53
|
+
min_semantic_score: number;
|
|
54
|
+
task?: string | undefined;
|
|
55
|
+
budget_preset?: "quick" | "balanced" | "deep" | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
symbols?: string[] | undefined;
|
|
58
|
+
task?: string | undefined;
|
|
59
|
+
files?: string[] | undefined;
|
|
60
|
+
max_tokens?: number | undefined;
|
|
61
|
+
max_memories?: number | undefined;
|
|
62
|
+
include_project_context?: boolean | undefined;
|
|
63
|
+
include_module_contexts?: boolean | undefined;
|
|
64
|
+
semantic?: boolean | undefined;
|
|
65
|
+
include_stale?: boolean | undefined;
|
|
66
|
+
track?: boolean | undefined;
|
|
67
|
+
format?: "full" | "compact" | "actions" | undefined;
|
|
68
|
+
min_semantic_score?: number | undefined;
|
|
69
|
+
budget_preset?: "quick" | "balanced" | "deep" | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
type GetBriefingInput = z.infer<typeof GetBriefingZod>;
|
|
43
72
|
interface BriefingMemory {
|
|
44
73
|
id: string;
|
|
45
74
|
scope: string;
|
|
@@ -133,6 +162,7 @@ interface BriefingOutput {
|
|
|
133
162
|
modules: number;
|
|
134
163
|
memories: number;
|
|
135
164
|
};
|
|
165
|
+
preset_applied?: "quick" | "balanced" | "deep";
|
|
136
166
|
};
|
|
137
167
|
}
|
|
138
168
|
declare function getBriefing(input: GetBriefingInput, ctx: HaiveContext): Promise<BriefingOutput>;
|
|
@@ -198,7 +228,7 @@ declare const MemRelevantToInputSchema: {
|
|
|
198
228
|
files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
199
229
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
200
230
|
min_semantic_score: z.ZodDefault<z.ZodNumber>;
|
|
201
|
-
format: z.ZodDefault<z.ZodEnum<["full", "compact"]>>;
|
|
231
|
+
format: z.ZodDefault<z.ZodEnum<["full", "compact", "actions"]>>;
|
|
202
232
|
};
|
|
203
233
|
type MemRelevantToInput = {
|
|
204
234
|
[K in keyof typeof MemRelevantToInputSchema]: z.infer<(typeof MemRelevantToInputSchema)[K]>;
|
|
@@ -536,6 +566,62 @@ interface PatternDetectOutput {
|
|
|
536
566
|
}
|
|
537
567
|
declare function patternDetect(input: PatternDetectInput, ctx: HaiveContext): Promise<PatternDetectOutput>;
|
|
538
568
|
|
|
569
|
+
/** Input is intentionally minimal — callers may pass cwd for multi-root clients. */
|
|
570
|
+
declare const MemResolveProjectInputSchema: {
|
|
571
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
572
|
+
};
|
|
573
|
+
type MemResolveProjectInput = {
|
|
574
|
+
[K in keyof typeof MemResolveProjectInputSchema]: z.infer<(typeof MemResolveProjectInputSchema)[K]>;
|
|
575
|
+
};
|
|
576
|
+
declare function memResolveProject(input: MemResolveProjectInput, _ctx: HaiveContext): Promise<{
|
|
577
|
+
info: ReturnType<typeof resolveProjectInfo>;
|
|
578
|
+
ok: true;
|
|
579
|
+
}>;
|
|
580
|
+
|
|
581
|
+
declare const MemSuggestTopicInputSchema: {
|
|
582
|
+
type: z.ZodEnum<["convention", "decision", "gotcha", "architecture", "glossary", "attempt", "session_recap"]>;
|
|
583
|
+
title: z.ZodString;
|
|
584
|
+
};
|
|
585
|
+
type MemSuggestTopicInput = {
|
|
586
|
+
[K in keyof typeof MemSuggestTopicInputSchema]: z.infer<(typeof MemSuggestTopicInputSchema)[K]>;
|
|
587
|
+
};
|
|
588
|
+
declare function memSuggestTopic(input: MemSuggestTopicInput, _ctx: HaiveContext): Promise<{
|
|
589
|
+
topic_key: string;
|
|
590
|
+
family: string;
|
|
591
|
+
type: string;
|
|
592
|
+
}>;
|
|
593
|
+
|
|
594
|
+
declare const MemTimelineInputSchema: {
|
|
595
|
+
memory_id: z.ZodOptional<z.ZodString>;
|
|
596
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
597
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
598
|
+
};
|
|
599
|
+
type MemTimelineInput = {
|
|
600
|
+
[K in keyof typeof MemTimelineInputSchema]: z.infer<(typeof MemTimelineInputSchema)[K]>;
|
|
601
|
+
};
|
|
602
|
+
declare function memTimeline(input: MemTimelineInput, ctx: HaiveContext): Promise<{
|
|
603
|
+
entries: _hiveai_core.TimelineEntry[];
|
|
604
|
+
total: number;
|
|
605
|
+
notice: string | undefined;
|
|
606
|
+
}>;
|
|
607
|
+
|
|
608
|
+
declare const MemConflictCandidatesInputSchema: {
|
|
609
|
+
since_days: z.ZodDefault<z.ZodNumber>;
|
|
610
|
+
types: z.ZodDefault<z.ZodArray<z.ZodEnum<["decision", "architecture", "convention", "gotcha"]>, "many">>;
|
|
611
|
+
min_jaccard: z.ZodDefault<z.ZodNumber>;
|
|
612
|
+
max_pairs: z.ZodDefault<z.ZodNumber>;
|
|
613
|
+
max_scan: z.ZodDefault<z.ZodNumber>;
|
|
614
|
+
};
|
|
615
|
+
type MemConflictCandidatesInput = {
|
|
616
|
+
[K in keyof typeof MemConflictCandidatesInputSchema]: z.infer<(typeof MemConflictCandidatesInputSchema)[K]>;
|
|
617
|
+
};
|
|
618
|
+
declare function memConflictCandidates(input: MemConflictCandidatesInput, ctx: HaiveContext): Promise<{
|
|
619
|
+
pairs: _hiveai_core.ConflictCandidatePair[];
|
|
620
|
+
scanned: number;
|
|
621
|
+
truncated: boolean;
|
|
622
|
+
notice: string | undefined;
|
|
623
|
+
}>;
|
|
624
|
+
|
|
539
625
|
declare const SERVER_NAME = "haive";
|
|
540
626
|
declare const SERVER_VERSION: string;
|
|
541
627
|
declare function createHaiveServer(options?: CreateContextOptions): {
|
|
@@ -558,4 +644,4 @@ declare function runHaiveMcpStdio(options: {
|
|
|
558
644
|
root?: string;
|
|
559
645
|
}): Promise<void>;
|
|
560
646
|
|
|
561
|
-
export { type AntiPatternsCheckInput, type AntiPatternsCheckOutput, type BriefingOutput, type CodeMapInput, type CodeMapToolOutput, type CodeSearchInput, type CodeSearchOutput, type GetBriefingInput, type GetRecapInput, type GetRecapOutput, type MemConflictsInput, type MemConflictsOutput, type MemDistillInput, type MemDistillOutput, type MemRelevantToInput, type MemRelevantToOutput, type PatternDetectInput, type PatternDetectOutput, type PreCommitCheckInput, type PreCommitCheckOutput, SERVER_NAME, SERVER_VERSION, type WhyThisDecisionInput, type WhyThisDecisionOutput, type WhyThisFileInput, type WhyThisFileOutput, antiPatternsCheck, codeMapTool, codeSearch, createHaiveServer, getBriefing, getRecap, memConflicts, memDistill, memRelevantTo, parseMcpCliArgs, patternDetect, preCommitCheck, printHaiveMcpVersion, runHaiveMcpStdio, whyThisDecision, whyThisFile };
|
|
647
|
+
export { type AntiPatternsCheckInput, type AntiPatternsCheckOutput, type BriefingOutput, type CodeMapInput, type CodeMapToolOutput, type CodeSearchInput, type CodeSearchOutput, type GetBriefingInput, type GetRecapInput, type GetRecapOutput, type MemConflictCandidatesInput, type MemConflictsInput, type MemConflictsOutput, type MemDistillInput, type MemDistillOutput, type MemRelevantToInput, type MemRelevantToOutput, type MemResolveProjectInput, type MemSuggestTopicInput, type MemTimelineInput, type PatternDetectInput, type PatternDetectOutput, type PreCommitCheckInput, type PreCommitCheckOutput, SERVER_NAME, SERVER_VERSION, type WhyThisDecisionInput, type WhyThisDecisionOutput, type WhyThisFileInput, type WhyThisFileOutput, antiPatternsCheck, codeMapTool, codeSearch, createHaiveServer, getBriefing, getRecap, memConflictCandidates, memConflicts, memDistill, memRelevantTo, memResolveProject, memSuggestTopic, memTimeline, parseMcpCliArgs, patternDetect, preCommitCheck, printHaiveMcpVersion, runHaiveMcpStdio, whyThisDecision, whyThisFile };
|