opencode-swarm 7.30.0 → 7.31.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/cli/index.js +448 -489
- package/dist/hooks/knowledge-store.d.ts +12 -0
- package/dist/index.js +989 -932
- package/package.json +1 -1
|
@@ -3,11 +3,23 @@ import type { KnowledgeEntryBase, RejectedLesson } from './knowledge-types.js';
|
|
|
3
3
|
export declare function getPlatformConfigDir(): string;
|
|
4
4
|
export declare function resolveSwarmKnowledgePath(directory: string): string;
|
|
5
5
|
export declare function resolveSwarmRejectedPath(directory: string): string;
|
|
6
|
+
export declare function resolveSwarmRetractionsPath(directory: string): string;
|
|
6
7
|
export declare function resolveHiveKnowledgePath(): string;
|
|
7
8
|
export declare function resolveHiveRejectedPath(): string;
|
|
8
9
|
export declare function readKnowledge<T>(filePath: string): Promise<T[]>;
|
|
9
10
|
export declare function normalizeEntry<T>(raw: T): T;
|
|
10
11
|
export declare function readRejectedLessons(directory: string): Promise<RejectedLesson[]>;
|
|
12
|
+
export interface KnowledgeRetractionRecord {
|
|
13
|
+
id: string;
|
|
14
|
+
retracted_lesson: string;
|
|
15
|
+
normalized_lesson: string;
|
|
16
|
+
recorded_at: string;
|
|
17
|
+
reported_by: 'architect' | 'user' | 'auto';
|
|
18
|
+
matched_swarm_ids: string[];
|
|
19
|
+
matched_hive_ids: string[];
|
|
20
|
+
}
|
|
21
|
+
export declare function readRetractionRecords(directory: string): Promise<KnowledgeRetractionRecord[]>;
|
|
22
|
+
export declare function appendRetractionRecord(directory: string, record: KnowledgeRetractionRecord): Promise<void>;
|
|
11
23
|
export declare function appendKnowledge<T>(filePath: string, entry: T): Promise<void>;
|
|
12
24
|
export declare function rewriteKnowledge<T>(filePath: string, entries: T[]): Promise<void>;
|
|
13
25
|
export declare function enforceKnowledgeCap<T>(filePath: string, maxEntries: number): Promise<void>;
|