@hiveai/mcp 0.10.4 → 0.10.8
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 +236 -235
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +51 -51
- package/dist/server.js +236 -235
- package/dist/server.js.map +1 -1
- package/package.json +3 -3
package/dist/server.d.ts
CHANGED
|
@@ -24,51 +24,6 @@ declare class SessionTracker {
|
|
|
24
24
|
private registerShutdownHandler;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/** Single inferred type — optional keys are optional (not `| undefined` required everywhere). */
|
|
28
|
-
declare const GetBriefingZod: z.ZodObject<{
|
|
29
|
-
task: z.ZodOptional<z.ZodString>;
|
|
30
|
-
files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
-
max_tokens: z.ZodDefault<z.ZodNumber>;
|
|
32
|
-
max_memories: z.ZodDefault<z.ZodNumber>;
|
|
33
|
-
include_project_context: z.ZodDefault<z.ZodBoolean>;
|
|
34
|
-
include_module_contexts: z.ZodDefault<z.ZodBoolean>;
|
|
35
|
-
semantic: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
-
include_stale: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
-
track: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
-
format: z.ZodDefault<z.ZodEnum<["full", "compact", "actions"]>>;
|
|
39
|
-
symbols: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
40
|
-
min_semantic_score: z.ZodDefault<z.ZodNumber>;
|
|
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>;
|
|
72
27
|
type BriefingMemoryPriority = "must_read" | "useful" | "background";
|
|
73
28
|
interface BriefingQuality {
|
|
74
29
|
level: "strong" | "thin" | "noisy";
|
|
@@ -145,7 +100,6 @@ interface BriefingOutput {
|
|
|
145
100
|
* Memories that require explicit human confirmation before any code action.
|
|
146
101
|
* IMPORTANT: for each item, show developer_message to the developer and
|
|
147
102
|
* wait for explicit approval before modifying any code.
|
|
148
|
-
* These are surfaced separately from memories to make them impossible to miss.
|
|
149
103
|
*/
|
|
150
104
|
action_required: ActionRequiredItem[];
|
|
151
105
|
decay_warnings: string[];
|
|
@@ -155,21 +109,16 @@ interface BriefingOutput {
|
|
|
155
109
|
* - project-context.md is still the default template
|
|
156
110
|
* - no memories matched the task (or none exist at all)
|
|
157
111
|
* - no previous session recap
|
|
158
|
-
* Clients can use this flag to skip surfacing a near-empty briefing to the model.
|
|
159
112
|
*/
|
|
160
113
|
low_value?: true;
|
|
161
114
|
/**
|
|
162
115
|
* Whether this briefing carries knowledge a capable model could NOT have inferred on its own.
|
|
163
116
|
* - "high": at least one surfaced memory is arbitrary/team-specific (unguessable).
|
|
164
117
|
* - "low": nothing team-specific matched — a generic agent would reach the same answer.
|
|
165
|
-
* When "low" and the project context is still auto-generated/template, the adaptive briefing
|
|
166
|
-
* trims that inferable context to keep the call near-zero-cost (config: adaptiveBriefing).
|
|
167
118
|
*/
|
|
168
119
|
briefing_value?: "high" | "low";
|
|
169
120
|
/**
|
|
170
121
|
* Short, action-oriented hints surfaced to the agent based on the briefing payload.
|
|
171
|
-
* Examples: "haive is uninitialized — use Read/Grep directly", "gotcha memories present — read first".
|
|
172
|
-
* Always non-empty when low_value=true.
|
|
173
122
|
*/
|
|
174
123
|
hints?: string[];
|
|
175
124
|
estimated_tokens: number;
|
|
@@ -183,6 +132,51 @@ interface BriefingOutput {
|
|
|
183
132
|
preset_applied?: "quick" | "balanced" | "deep";
|
|
184
133
|
};
|
|
185
134
|
}
|
|
135
|
+
|
|
136
|
+
declare const GetBriefingZod: z.ZodObject<{
|
|
137
|
+
task: z.ZodOptional<z.ZodString>;
|
|
138
|
+
files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
139
|
+
max_tokens: z.ZodDefault<z.ZodNumber>;
|
|
140
|
+
max_memories: z.ZodDefault<z.ZodNumber>;
|
|
141
|
+
include_project_context: z.ZodDefault<z.ZodBoolean>;
|
|
142
|
+
include_module_contexts: z.ZodDefault<z.ZodBoolean>;
|
|
143
|
+
semantic: z.ZodDefault<z.ZodBoolean>;
|
|
144
|
+
include_stale: z.ZodDefault<z.ZodBoolean>;
|
|
145
|
+
track: z.ZodDefault<z.ZodBoolean>;
|
|
146
|
+
format: z.ZodDefault<z.ZodEnum<["full", "compact", "actions"]>>;
|
|
147
|
+
symbols: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
148
|
+
min_semantic_score: z.ZodDefault<z.ZodNumber>;
|
|
149
|
+
budget_preset: z.ZodOptional<z.ZodEnum<["quick", "balanced", "deep"]>>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
symbols: string[];
|
|
152
|
+
files: string[];
|
|
153
|
+
max_tokens: number;
|
|
154
|
+
max_memories: number;
|
|
155
|
+
include_project_context: boolean;
|
|
156
|
+
include_module_contexts: boolean;
|
|
157
|
+
semantic: boolean;
|
|
158
|
+
include_stale: boolean;
|
|
159
|
+
track: boolean;
|
|
160
|
+
format: "full" | "compact" | "actions";
|
|
161
|
+
min_semantic_score: number;
|
|
162
|
+
task?: string | undefined;
|
|
163
|
+
budget_preset?: "quick" | "balanced" | "deep" | undefined;
|
|
164
|
+
}, {
|
|
165
|
+
symbols?: string[] | undefined;
|
|
166
|
+
task?: string | undefined;
|
|
167
|
+
files?: string[] | undefined;
|
|
168
|
+
max_tokens?: number | undefined;
|
|
169
|
+
max_memories?: number | undefined;
|
|
170
|
+
include_project_context?: boolean | undefined;
|
|
171
|
+
include_module_contexts?: boolean | undefined;
|
|
172
|
+
semantic?: boolean | undefined;
|
|
173
|
+
include_stale?: boolean | undefined;
|
|
174
|
+
track?: boolean | undefined;
|
|
175
|
+
format?: "full" | "compact" | "actions" | undefined;
|
|
176
|
+
min_semantic_score?: number | undefined;
|
|
177
|
+
budget_preset?: "quick" | "balanced" | "deep" | undefined;
|
|
178
|
+
}>;
|
|
179
|
+
type GetBriefingInput = z.infer<typeof GetBriefingZod>;
|
|
186
180
|
declare function getBriefing(input: GetBriefingInput, ctx: HaiveContext): Promise<BriefingOutput>;
|
|
187
181
|
|
|
188
182
|
declare const CodeMapInputZod: z.ZodObject<{
|
|
@@ -371,6 +365,12 @@ interface AntiPatternsWarning {
|
|
|
371
365
|
tags?: string[];
|
|
372
366
|
/** Anchor paths of the memory — lets the gate tell what kind of file this warning is about. */
|
|
373
367
|
anchor_paths?: string[];
|
|
368
|
+
/**
|
|
369
|
+
* True when the memory has an executable sensor defined.
|
|
370
|
+
* Used by the pre-commit gate: if a sensor exists but did NOT fire (no "sensor" reason),
|
|
371
|
+
* the sensor is the authoritative check and literal matching alone should not block.
|
|
372
|
+
*/
|
|
373
|
+
has_sensor?: boolean;
|
|
374
374
|
}
|
|
375
375
|
interface AntiPatternsCheckOutput {
|
|
376
376
|
/** Total number of attempt+gotcha memories that exist in this project. */
|