@hiveai/mcp 0.8.0 → 0.9.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 +478 -121
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +29 -1
- package/dist/server.js +479 -121
- package/dist/server.js.map +1 -1
- package/package.json +3 -3
package/dist/server.d.ts
CHANGED
|
@@ -508,6 +508,34 @@ interface PreCommitCheckOutput {
|
|
|
508
508
|
*/
|
|
509
509
|
declare function preCommitCheck(input: PreCommitCheckInput, ctx: HaiveContext): Promise<PreCommitCheckOutput>;
|
|
510
510
|
|
|
511
|
+
declare const PatternDetectInputSchema: {
|
|
512
|
+
since_days: z.ZodDefault<z.ZodNumber>;
|
|
513
|
+
dry_run: z.ZodDefault<z.ZodBoolean>;
|
|
514
|
+
scope: z.ZodDefault<z.ZodEnum<["personal", "team"]>>;
|
|
515
|
+
};
|
|
516
|
+
type PatternDetectInput = {
|
|
517
|
+
[K in keyof typeof PatternDetectInputSchema]: z.infer<(typeof PatternDetectInputSchema)[K]>;
|
|
518
|
+
};
|
|
519
|
+
type PatternKind = "config_change" | "repeated_path" | "hot_file";
|
|
520
|
+
interface PatternMatch {
|
|
521
|
+
kind: PatternKind;
|
|
522
|
+
signal: string;
|
|
523
|
+
proposed_type: "convention" | "gotcha";
|
|
524
|
+
proposed_slug: string;
|
|
525
|
+
proposed_body: string;
|
|
526
|
+
anchor_paths: string[];
|
|
527
|
+
}
|
|
528
|
+
interface PatternDetectOutput {
|
|
529
|
+
scanned_events: number;
|
|
530
|
+
matches: PatternMatch[];
|
|
531
|
+
/** Number of proposed memories saved (0 if dry_run). */
|
|
532
|
+
saved: number;
|
|
533
|
+
/** IDs of saved memories. */
|
|
534
|
+
saved_ids: string[];
|
|
535
|
+
notice?: string;
|
|
536
|
+
}
|
|
537
|
+
declare function patternDetect(input: PatternDetectInput, ctx: HaiveContext): Promise<PatternDetectOutput>;
|
|
538
|
+
|
|
511
539
|
declare const SERVER_NAME = "haive";
|
|
512
540
|
declare const SERVER_VERSION: string;
|
|
513
541
|
declare function createHaiveServer(options?: CreateContextOptions): {
|
|
@@ -516,4 +544,4 @@ declare function createHaiveServer(options?: CreateContextOptions): {
|
|
|
516
544
|
tracker: SessionTracker;
|
|
517
545
|
};
|
|
518
546
|
|
|
519
|
-
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 PreCommitCheckInput, type PreCommitCheckOutput, SERVER_NAME, SERVER_VERSION, type WhyThisDecisionInput, type WhyThisDecisionOutput, type WhyThisFileInput, type WhyThisFileOutput, antiPatternsCheck, codeMapTool, codeSearch, createHaiveServer, getBriefing, getRecap, memConflicts, memDistill, memRelevantTo, preCommitCheck, whyThisDecision, whyThisFile };
|
|
547
|
+
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, patternDetect, preCommitCheck, whyThisDecision, whyThisFile };
|