opencode-swarm-plugin 0.45.6 → 0.46.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/bin/cass.characterization.test.ts +400 -379
- package/bin/eval-gate.test.ts +23 -0
- package/bin/eval-gate.ts +21 -0
- package/bin/swarm.ts +141 -45
- package/dist/bin/swarm.js +4504 -5064
- package/dist/cass-tools.d.ts +1 -2
- package/dist/cass-tools.d.ts.map +1 -1
- package/dist/compaction-hook.d.ts +50 -6
- package/dist/compaction-hook.d.ts.map +1 -1
- package/dist/dashboard.d.ts +5 -6
- package/dist/dashboard.d.ts.map +1 -1
- package/dist/eval-capture.d.ts +20 -10
- package/dist/eval-capture.d.ts.map +1 -1
- package/dist/eval-capture.js +54 -21
- package/dist/eval-learning.d.ts +5 -5
- package/dist/eval-learning.d.ts.map +1 -1
- package/dist/hive.d.ts +7 -0
- package/dist/hive.d.ts.map +1 -1
- package/dist/hive.js +61 -24
- package/dist/hivemind-tools.d.ts +479 -0
- package/dist/hivemind-tools.d.ts.map +1 -0
- package/dist/index.d.ts +31 -98
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1018 -467
- package/dist/observability-health.d.ts +87 -0
- package/dist/observability-health.d.ts.map +1 -0
- package/dist/observability-tools.d.ts +5 -1
- package/dist/observability-tools.d.ts.map +1 -1
- package/dist/planning-guardrails.d.ts +24 -5
- package/dist/planning-guardrails.d.ts.map +1 -1
- package/dist/plugin.js +1006 -475
- package/dist/query-tools.d.ts +23 -5
- package/dist/query-tools.d.ts.map +1 -1
- package/dist/regression-detection.d.ts +58 -0
- package/dist/regression-detection.d.ts.map +1 -0
- package/dist/swarm-orchestrate.d.ts +3 -3
- package/dist/swarm-orchestrate.d.ts.map +1 -1
- package/dist/swarm-prompts.d.ts +4 -4
- package/dist/swarm-prompts.d.ts.map +1 -1
- package/dist/swarm-prompts.js +165 -74
- package/dist/swarm-research.d.ts +0 -2
- package/dist/swarm-research.d.ts.map +1 -1
- package/dist/tool-availability.d.ts +1 -1
- package/dist/tool-availability.d.ts.map +1 -1
- package/examples/commands/swarm.md +7 -7
- package/global-skills/swarm-coordination/SKILL.md +6 -6
- package/package.json +6 -3
package/dist/hive.js
CHANGED
|
@@ -12711,6 +12711,7 @@ __export(exports_eval_capture, {
|
|
|
12711
12711
|
import * as fs from "node:fs";
|
|
12712
12712
|
import * as os from "node:os";
|
|
12713
12713
|
import * as path from "node:path";
|
|
12714
|
+
import { getSwarmMailLibSQL } from "swarm-mail";
|
|
12714
12715
|
function getEvalDataPath(projectPath) {
|
|
12715
12716
|
return path.join(projectPath, DEFAULT_EVAL_DATA_PATH);
|
|
12716
12717
|
}
|
|
@@ -12890,7 +12891,7 @@ function getEvalDataStats(projectPath) {
|
|
|
12890
12891
|
};
|
|
12891
12892
|
}
|
|
12892
12893
|
function getSessionDir() {
|
|
12893
|
-
return path.join(os.homedir(), ".config", "swarm-tools", "sessions");
|
|
12894
|
+
return process.env.SWARM_SESSIONS_DIR || path.join(os.homedir(), ".config", "swarm-tools", "sessions");
|
|
12894
12895
|
}
|
|
12895
12896
|
function getSessionPath(sessionId) {
|
|
12896
12897
|
return path.join(getSessionDir(), `${sessionId}.jsonl`);
|
|
@@ -12901,15 +12902,46 @@ function ensureSessionDir() {
|
|
|
12901
12902
|
fs.mkdirSync(sessionDir, { recursive: true });
|
|
12902
12903
|
}
|
|
12903
12904
|
}
|
|
12904
|
-
function captureCoordinatorEvent(event) {
|
|
12905
|
+
async function captureCoordinatorEvent(event) {
|
|
12905
12906
|
CoordinatorEventSchema.parse(event);
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12907
|
+
try {
|
|
12908
|
+
const projectPath = process.cwd();
|
|
12909
|
+
const swarmMail = await getSwarmMailLibSQL(projectPath);
|
|
12910
|
+
const eventType = `coordinator_${event.event_type.toLowerCase()}`;
|
|
12911
|
+
const eventData = {
|
|
12912
|
+
type: eventType,
|
|
12913
|
+
project_key: projectPath,
|
|
12914
|
+
timestamp: new Date(event.timestamp).getTime(),
|
|
12915
|
+
session_id: event.session_id,
|
|
12916
|
+
epic_id: event.epic_id,
|
|
12917
|
+
event_type: event.event_type,
|
|
12918
|
+
payload: event.payload
|
|
12919
|
+
};
|
|
12920
|
+
if (event.event_type === "DECISION") {
|
|
12921
|
+
eventData.decision_type = event.decision_type;
|
|
12922
|
+
} else if (event.event_type === "VIOLATION") {
|
|
12923
|
+
eventData.violation_type = event.violation_type;
|
|
12924
|
+
} else if (event.event_type === "OUTCOME") {
|
|
12925
|
+
eventData.outcome_type = event.outcome_type;
|
|
12926
|
+
} else if (event.event_type === "COMPACTION") {
|
|
12927
|
+
eventData.compaction_type = event.compaction_type;
|
|
12928
|
+
}
|
|
12929
|
+
await swarmMail.appendEvent(eventData);
|
|
12930
|
+
ensureSessionDir();
|
|
12931
|
+
const sessionPath = getSessionPath(event.session_id);
|
|
12932
|
+
const line = `${JSON.stringify(event)}
|
|
12933
|
+
`;
|
|
12934
|
+
fs.appendFileSync(sessionPath, line, "utf-8");
|
|
12935
|
+
} catch (error45) {
|
|
12936
|
+
console.warn("Failed to append event to libSQL, using JSONL fallback:", error45);
|
|
12937
|
+
ensureSessionDir();
|
|
12938
|
+
const sessionPath = getSessionPath(event.session_id);
|
|
12939
|
+
const line = `${JSON.stringify(event)}
|
|
12909
12940
|
`;
|
|
12910
|
-
|
|
12941
|
+
fs.appendFileSync(sessionPath, line, "utf-8");
|
|
12942
|
+
}
|
|
12911
12943
|
}
|
|
12912
|
-
function captureCompactionEvent(params) {
|
|
12944
|
+
async function captureCompactionEvent(params) {
|
|
12913
12945
|
const event = {
|
|
12914
12946
|
session_id: params.session_id,
|
|
12915
12947
|
epic_id: params.epic_id,
|
|
@@ -12918,9 +12950,9 @@ function captureCompactionEvent(params) {
|
|
|
12918
12950
|
compaction_type: params.compaction_type,
|
|
12919
12951
|
payload: params.payload
|
|
12920
12952
|
};
|
|
12921
|
-
captureCoordinatorEvent(event);
|
|
12953
|
+
await captureCoordinatorEvent(event);
|
|
12922
12954
|
}
|
|
12923
|
-
function captureResearcherSpawned(params) {
|
|
12955
|
+
async function captureResearcherSpawned(params) {
|
|
12924
12956
|
const event = {
|
|
12925
12957
|
session_id: params.session_id,
|
|
12926
12958
|
epic_id: params.epic_id,
|
|
@@ -12933,9 +12965,9 @@ function captureResearcherSpawned(params) {
|
|
|
12933
12965
|
tools_used: params.tools_used || []
|
|
12934
12966
|
}
|
|
12935
12967
|
};
|
|
12936
|
-
captureCoordinatorEvent(event);
|
|
12968
|
+
await captureCoordinatorEvent(event);
|
|
12937
12969
|
}
|
|
12938
|
-
function captureSkillLoaded(params) {
|
|
12970
|
+
async function captureSkillLoaded(params) {
|
|
12939
12971
|
const event = {
|
|
12940
12972
|
session_id: params.session_id,
|
|
12941
12973
|
epic_id: params.epic_id,
|
|
@@ -12947,9 +12979,9 @@ function captureSkillLoaded(params) {
|
|
|
12947
12979
|
context: params.context
|
|
12948
12980
|
}
|
|
12949
12981
|
};
|
|
12950
|
-
captureCoordinatorEvent(event);
|
|
12982
|
+
await captureCoordinatorEvent(event);
|
|
12951
12983
|
}
|
|
12952
|
-
function captureInboxChecked(params) {
|
|
12984
|
+
async function captureInboxChecked(params) {
|
|
12953
12985
|
const event = {
|
|
12954
12986
|
session_id: params.session_id,
|
|
12955
12987
|
epic_id: params.epic_id,
|
|
@@ -12961,9 +12993,9 @@ function captureInboxChecked(params) {
|
|
|
12961
12993
|
urgent_count: params.urgent_count
|
|
12962
12994
|
}
|
|
12963
12995
|
};
|
|
12964
|
-
captureCoordinatorEvent(event);
|
|
12996
|
+
await captureCoordinatorEvent(event);
|
|
12965
12997
|
}
|
|
12966
|
-
function captureBlockerResolved(params) {
|
|
12998
|
+
async function captureBlockerResolved(params) {
|
|
12967
12999
|
const event = {
|
|
12968
13000
|
session_id: params.session_id,
|
|
12969
13001
|
epic_id: params.epic_id,
|
|
@@ -12977,9 +13009,9 @@ function captureBlockerResolved(params) {
|
|
|
12977
13009
|
resolution: params.resolution
|
|
12978
13010
|
}
|
|
12979
13011
|
};
|
|
12980
|
-
captureCoordinatorEvent(event);
|
|
13012
|
+
await captureCoordinatorEvent(event);
|
|
12981
13013
|
}
|
|
12982
|
-
function captureScopeChangeDecision(params) {
|
|
13014
|
+
async function captureScopeChangeDecision(params) {
|
|
12983
13015
|
const event = {
|
|
12984
13016
|
session_id: params.session_id,
|
|
12985
13017
|
epic_id: params.epic_id,
|
|
@@ -12999,9 +13031,9 @@ function captureScopeChangeDecision(params) {
|
|
|
12999
13031
|
rejection_reason: params.rejection_reason
|
|
13000
13032
|
}
|
|
13001
13033
|
};
|
|
13002
|
-
captureCoordinatorEvent(event);
|
|
13034
|
+
await captureCoordinatorEvent(event);
|
|
13003
13035
|
}
|
|
13004
|
-
function captureBlockerDetected(params) {
|
|
13036
|
+
async function captureBlockerDetected(params) {
|
|
13005
13037
|
const event = {
|
|
13006
13038
|
session_id: params.session_id,
|
|
13007
13039
|
epic_id: params.epic_id,
|
|
@@ -13016,7 +13048,7 @@ function captureBlockerDetected(params) {
|
|
|
13016
13048
|
reported_at: new Date().toISOString()
|
|
13017
13049
|
}
|
|
13018
13050
|
};
|
|
13019
|
-
captureCoordinatorEvent(event);
|
|
13051
|
+
await captureCoordinatorEvent(event);
|
|
13020
13052
|
}
|
|
13021
13053
|
function readSessionEvents(sessionId) {
|
|
13022
13054
|
const sessionPath = getSessionPath(sessionId);
|
|
@@ -13119,7 +13151,8 @@ var init_eval_capture = __esm(() => {
|
|
|
13119
13151
|
"coordinator_edited_file",
|
|
13120
13152
|
"coordinator_ran_tests",
|
|
13121
13153
|
"coordinator_reserved_files",
|
|
13122
|
-
"no_worker_spawned"
|
|
13154
|
+
"no_worker_spawned",
|
|
13155
|
+
"worker_completed_without_review"
|
|
13123
13156
|
]),
|
|
13124
13157
|
payload: exports_external.any()
|
|
13125
13158
|
}),
|
|
@@ -13242,7 +13275,7 @@ import {
|
|
|
13242
13275
|
FlushManager,
|
|
13243
13276
|
importFromJSONL,
|
|
13244
13277
|
syncMemories,
|
|
13245
|
-
getSwarmMailLibSQL,
|
|
13278
|
+
getSwarmMailLibSQL as getSwarmMailLibSQL2,
|
|
13246
13279
|
resolvePartialId,
|
|
13247
13280
|
findCellsByPartialId
|
|
13248
13281
|
} from "swarm-mail";
|
|
@@ -14033,7 +14066,7 @@ async function getHiveAdapter(projectKey) {
|
|
|
14033
14066
|
if (adapterCache.has(projectKey)) {
|
|
14034
14067
|
return adapterCache.get(projectKey);
|
|
14035
14068
|
}
|
|
14036
|
-
const swarmMail = await
|
|
14069
|
+
const swarmMail = await getSwarmMailLibSQL2(projectKey);
|
|
14037
14070
|
const db = await swarmMail.getDatabase();
|
|
14038
14071
|
const adapter = createHiveAdapter(db, projectKey);
|
|
14039
14072
|
await adapter.runMigrations();
|
|
@@ -14042,6 +14075,9 @@ async function getHiveAdapter(projectKey) {
|
|
|
14042
14075
|
return adapter;
|
|
14043
14076
|
}
|
|
14044
14077
|
var getBeadsAdapter = getHiveAdapter;
|
|
14078
|
+
function clearHiveAdapterCache() {
|
|
14079
|
+
adapterCache.clear();
|
|
14080
|
+
}
|
|
14045
14081
|
async function autoMigrateFromJSONL(adapter, projectKey) {
|
|
14046
14082
|
const jsonlPath = join2(projectKey, ".hive", "issues.jsonl");
|
|
14047
14083
|
if (!existsSync2(jsonlPath)) {
|
|
@@ -14662,7 +14698,7 @@ var hive_sync = tool({
|
|
|
14662
14698
|
outputPath: `${projectKey}/.hive/issues.jsonl`
|
|
14663
14699
|
});
|
|
14664
14700
|
const flushResult = await withTimeout(flushManager.flush(), TIMEOUT_MS, "flush hive");
|
|
14665
|
-
const swarmMail = await
|
|
14701
|
+
const swarmMail = await getSwarmMailLibSQL2(projectKey);
|
|
14666
14702
|
const db = await swarmMail.getDatabase();
|
|
14667
14703
|
const hivePath = join2(projectKey, ".hive");
|
|
14668
14704
|
let memoriesSynced = 0;
|
|
@@ -14895,6 +14931,7 @@ export {
|
|
|
14895
14931
|
getBeadsWorkingDirectory,
|
|
14896
14932
|
getBeadsAdapter,
|
|
14897
14933
|
ensureHiveDirectory,
|
|
14934
|
+
clearHiveAdapterCache,
|
|
14898
14935
|
checkBeadsMigrationNeeded,
|
|
14899
14936
|
beads_update,
|
|
14900
14937
|
beads_sync,
|
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hivemind Tools - Unified Memory System
|
|
3
|
+
*
|
|
4
|
+
* Unifies semantic-memory and CASS tools under the hivemind namespace.
|
|
5
|
+
* Sessions and learnings are both memories with different sources.
|
|
6
|
+
*
|
|
7
|
+
* Key design decisions (ADR-011):
|
|
8
|
+
* - 8 tools instead of 15 (merged duplicates)
|
|
9
|
+
* - Collection filter: "default" for learnings, "claude" for Claude sessions, etc.
|
|
10
|
+
* - Unified search across learnings + sessions
|
|
11
|
+
* - No more naming collision with external semantic-memory MCP
|
|
12
|
+
*
|
|
13
|
+
* Tool mapping:
|
|
14
|
+
* - semantic-memory_store → hivemind_store
|
|
15
|
+
* - semantic-memory_find + cass_search → hivemind_find
|
|
16
|
+
* - semantic-memory_get + cass_view → hivemind_get
|
|
17
|
+
* - semantic-memory_remove → hivemind_remove
|
|
18
|
+
* - semantic-memory_validate → hivemind_validate
|
|
19
|
+
* - semantic-memory_stats + cass_stats + cass_health → hivemind_stats
|
|
20
|
+
* - cass_index → hivemind_index
|
|
21
|
+
* - NEW: hivemind_sync (sync to .hive/memories.jsonl)
|
|
22
|
+
*/
|
|
23
|
+
import { type MemoryAdapter, type StoreArgs, type FindArgs, type IdArgs, type StoreResult, type FindResult, type StatsResult, type OperationResult } from "./memory";
|
|
24
|
+
export type { MemoryAdapter, StoreArgs, FindArgs, IdArgs, StoreResult, FindResult, StatsResult, OperationResult, };
|
|
25
|
+
/**
|
|
26
|
+
* Get or create memory adapter for the current project
|
|
27
|
+
*/
|
|
28
|
+
declare function getMemoryAdapter(projectPath?: string): Promise<MemoryAdapter>;
|
|
29
|
+
/**
|
|
30
|
+
* Get or create hivemind adapter (alias for getMemoryAdapter)
|
|
31
|
+
*/
|
|
32
|
+
export declare const getHivemindAdapter: typeof getMemoryAdapter;
|
|
33
|
+
/**
|
|
34
|
+
* Reset adapter cache (for testing)
|
|
35
|
+
*/
|
|
36
|
+
export declare function resetHivemindCache(): void;
|
|
37
|
+
/**
|
|
38
|
+
* hivemind_store - Store a memory with semantic embedding
|
|
39
|
+
*/
|
|
40
|
+
export declare const hivemind_store: {
|
|
41
|
+
description: string;
|
|
42
|
+
args: {
|
|
43
|
+
information: import("zod").ZodString;
|
|
44
|
+
collection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
tags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
metadata: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
+
confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
48
|
+
autoTag: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49
|
+
autoLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
50
|
+
extractEntities: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
51
|
+
};
|
|
52
|
+
execute(args: {
|
|
53
|
+
information: string;
|
|
54
|
+
collection?: string | undefined;
|
|
55
|
+
tags?: string | undefined;
|
|
56
|
+
metadata?: string | undefined;
|
|
57
|
+
confidence?: number | undefined;
|
|
58
|
+
autoTag?: boolean | undefined;
|
|
59
|
+
autoLink?: boolean | undefined;
|
|
60
|
+
extractEntities?: boolean | undefined;
|
|
61
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* hivemind_find - Search all memories (learnings + sessions)
|
|
65
|
+
*/
|
|
66
|
+
export declare const hivemind_find: {
|
|
67
|
+
description: string;
|
|
68
|
+
args: {
|
|
69
|
+
query: import("zod").ZodString;
|
|
70
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
71
|
+
collection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
72
|
+
expand: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
73
|
+
fts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
74
|
+
};
|
|
75
|
+
execute(args: {
|
|
76
|
+
query: string;
|
|
77
|
+
limit?: number | undefined;
|
|
78
|
+
collection?: string | undefined;
|
|
79
|
+
expand?: boolean | undefined;
|
|
80
|
+
fts?: boolean | undefined;
|
|
81
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* hivemind_get - Get a specific memory by ID
|
|
85
|
+
*/
|
|
86
|
+
export declare const hivemind_get: {
|
|
87
|
+
description: string;
|
|
88
|
+
args: {
|
|
89
|
+
id: import("zod").ZodString;
|
|
90
|
+
};
|
|
91
|
+
execute(args: {
|
|
92
|
+
id: string;
|
|
93
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* hivemind_remove - Delete a memory
|
|
97
|
+
*/
|
|
98
|
+
export declare const hivemind_remove: {
|
|
99
|
+
description: string;
|
|
100
|
+
args: {
|
|
101
|
+
id: import("zod").ZodString;
|
|
102
|
+
};
|
|
103
|
+
execute(args: {
|
|
104
|
+
id: string;
|
|
105
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* hivemind_validate - Validate a memory (reset decay timer)
|
|
109
|
+
*/
|
|
110
|
+
export declare const hivemind_validate: {
|
|
111
|
+
description: string;
|
|
112
|
+
args: {
|
|
113
|
+
id: import("zod").ZodString;
|
|
114
|
+
};
|
|
115
|
+
execute(args: {
|
|
116
|
+
id: string;
|
|
117
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* hivemind_stats - Combined statistics and health check
|
|
121
|
+
*/
|
|
122
|
+
export declare const hivemind_stats: {
|
|
123
|
+
description: string;
|
|
124
|
+
args: {};
|
|
125
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* hivemind_index - Index AI session directories
|
|
129
|
+
*/
|
|
130
|
+
export declare const hivemind_index: {
|
|
131
|
+
description: string;
|
|
132
|
+
args: {
|
|
133
|
+
full: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
134
|
+
};
|
|
135
|
+
execute(args: {
|
|
136
|
+
full?: boolean | undefined;
|
|
137
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* hivemind_sync - Sync memories to .hive/memories.jsonl
|
|
141
|
+
*/
|
|
142
|
+
export declare const hivemind_sync: {
|
|
143
|
+
description: string;
|
|
144
|
+
args: {};
|
|
145
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
146
|
+
};
|
|
147
|
+
declare const semantic_memory_store: any;
|
|
148
|
+
declare const semantic_memory_find: any;
|
|
149
|
+
declare const semantic_memory_get: any;
|
|
150
|
+
declare const semantic_memory_remove: any;
|
|
151
|
+
declare const semantic_memory_validate: any;
|
|
152
|
+
declare const semantic_memory_list: any;
|
|
153
|
+
declare const semantic_memory_stats: any;
|
|
154
|
+
declare const semantic_memory_check: any;
|
|
155
|
+
declare const semantic_memory_upsert: any;
|
|
156
|
+
declare const cass_search: any;
|
|
157
|
+
declare const cass_view: any;
|
|
158
|
+
declare const cass_expand: any;
|
|
159
|
+
declare const cass_health: any;
|
|
160
|
+
declare const cass_index: any;
|
|
161
|
+
declare const cass_stats: any;
|
|
162
|
+
/**
|
|
163
|
+
* All hivemind tools + deprecation aliases
|
|
164
|
+
*
|
|
165
|
+
* Register these in the plugin with spread operator: { ...hivemindTools }
|
|
166
|
+
*/
|
|
167
|
+
export declare const hivemindTools: {
|
|
168
|
+
readonly hivemind_store: {
|
|
169
|
+
description: string;
|
|
170
|
+
args: {
|
|
171
|
+
information: import("zod").ZodString;
|
|
172
|
+
collection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
|
+
tags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
174
|
+
metadata: import("zod").ZodOptional<import("zod").ZodString>;
|
|
175
|
+
confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
176
|
+
autoTag: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
177
|
+
autoLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
178
|
+
extractEntities: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
179
|
+
};
|
|
180
|
+
execute(args: {
|
|
181
|
+
information: string;
|
|
182
|
+
collection?: string | undefined;
|
|
183
|
+
tags?: string | undefined;
|
|
184
|
+
metadata?: string | undefined;
|
|
185
|
+
confidence?: number | undefined;
|
|
186
|
+
autoTag?: boolean | undefined;
|
|
187
|
+
autoLink?: boolean | undefined;
|
|
188
|
+
extractEntities?: boolean | undefined;
|
|
189
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
190
|
+
};
|
|
191
|
+
readonly hivemind_find: {
|
|
192
|
+
description: string;
|
|
193
|
+
args: {
|
|
194
|
+
query: import("zod").ZodString;
|
|
195
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
196
|
+
collection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
197
|
+
expand: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
198
|
+
fts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
199
|
+
};
|
|
200
|
+
execute(args: {
|
|
201
|
+
query: string;
|
|
202
|
+
limit?: number | undefined;
|
|
203
|
+
collection?: string | undefined;
|
|
204
|
+
expand?: boolean | undefined;
|
|
205
|
+
fts?: boolean | undefined;
|
|
206
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
207
|
+
};
|
|
208
|
+
readonly hivemind_get: {
|
|
209
|
+
description: string;
|
|
210
|
+
args: {
|
|
211
|
+
id: import("zod").ZodString;
|
|
212
|
+
};
|
|
213
|
+
execute(args: {
|
|
214
|
+
id: string;
|
|
215
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
216
|
+
};
|
|
217
|
+
readonly hivemind_remove: {
|
|
218
|
+
description: string;
|
|
219
|
+
args: {
|
|
220
|
+
id: import("zod").ZodString;
|
|
221
|
+
};
|
|
222
|
+
execute(args: {
|
|
223
|
+
id: string;
|
|
224
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
225
|
+
};
|
|
226
|
+
readonly hivemind_validate: {
|
|
227
|
+
description: string;
|
|
228
|
+
args: {
|
|
229
|
+
id: import("zod").ZodString;
|
|
230
|
+
};
|
|
231
|
+
execute(args: {
|
|
232
|
+
id: string;
|
|
233
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
234
|
+
};
|
|
235
|
+
readonly hivemind_stats: {
|
|
236
|
+
description: string;
|
|
237
|
+
args: {};
|
|
238
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
239
|
+
};
|
|
240
|
+
readonly hivemind_index: {
|
|
241
|
+
description: string;
|
|
242
|
+
args: {
|
|
243
|
+
full: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
244
|
+
};
|
|
245
|
+
execute(args: {
|
|
246
|
+
full?: boolean | undefined;
|
|
247
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
248
|
+
};
|
|
249
|
+
readonly hivemind_sync: {
|
|
250
|
+
description: string;
|
|
251
|
+
args: {};
|
|
252
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
253
|
+
};
|
|
254
|
+
readonly "semantic-memory_store": any;
|
|
255
|
+
readonly "semantic-memory_find": any;
|
|
256
|
+
readonly "semantic-memory_get": any;
|
|
257
|
+
readonly "semantic-memory_remove": any;
|
|
258
|
+
readonly "semantic-memory_validate": any;
|
|
259
|
+
readonly "semantic-memory_list": any;
|
|
260
|
+
readonly "semantic-memory_stats": any;
|
|
261
|
+
readonly "semantic-memory_check": any;
|
|
262
|
+
readonly "semantic-memory_upsert": any;
|
|
263
|
+
readonly cass_search: any;
|
|
264
|
+
readonly cass_view: any;
|
|
265
|
+
readonly cass_expand: any;
|
|
266
|
+
readonly cass_health: any;
|
|
267
|
+
readonly cass_index: any;
|
|
268
|
+
readonly cass_stats: any;
|
|
269
|
+
};
|
|
270
|
+
export { semantic_memory_store, semantic_memory_find, semantic_memory_get, semantic_memory_remove, semantic_memory_validate, semantic_memory_list, semantic_memory_stats, semantic_memory_check, semantic_memory_upsert, cass_search, cass_view, cass_expand, cass_health, cass_index, cass_stats, };
|
|
271
|
+
export { createMemoryAdapter } from "./memory";
|
|
272
|
+
export declare const memoryTools: {
|
|
273
|
+
readonly hivemind_store: {
|
|
274
|
+
description: string;
|
|
275
|
+
args: {
|
|
276
|
+
information: import("zod").ZodString;
|
|
277
|
+
collection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
278
|
+
tags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
279
|
+
metadata: import("zod").ZodOptional<import("zod").ZodString>;
|
|
280
|
+
confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
281
|
+
autoTag: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
282
|
+
autoLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
283
|
+
extractEntities: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
284
|
+
};
|
|
285
|
+
execute(args: {
|
|
286
|
+
information: string;
|
|
287
|
+
collection?: string | undefined;
|
|
288
|
+
tags?: string | undefined;
|
|
289
|
+
metadata?: string | undefined;
|
|
290
|
+
confidence?: number | undefined;
|
|
291
|
+
autoTag?: boolean | undefined;
|
|
292
|
+
autoLink?: boolean | undefined;
|
|
293
|
+
extractEntities?: boolean | undefined;
|
|
294
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
295
|
+
};
|
|
296
|
+
readonly hivemind_find: {
|
|
297
|
+
description: string;
|
|
298
|
+
args: {
|
|
299
|
+
query: import("zod").ZodString;
|
|
300
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
301
|
+
collection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
302
|
+
expand: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
303
|
+
fts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
304
|
+
};
|
|
305
|
+
execute(args: {
|
|
306
|
+
query: string;
|
|
307
|
+
limit?: number | undefined;
|
|
308
|
+
collection?: string | undefined;
|
|
309
|
+
expand?: boolean | undefined;
|
|
310
|
+
fts?: boolean | undefined;
|
|
311
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
312
|
+
};
|
|
313
|
+
readonly hivemind_get: {
|
|
314
|
+
description: string;
|
|
315
|
+
args: {
|
|
316
|
+
id: import("zod").ZodString;
|
|
317
|
+
};
|
|
318
|
+
execute(args: {
|
|
319
|
+
id: string;
|
|
320
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
321
|
+
};
|
|
322
|
+
readonly hivemind_remove: {
|
|
323
|
+
description: string;
|
|
324
|
+
args: {
|
|
325
|
+
id: import("zod").ZodString;
|
|
326
|
+
};
|
|
327
|
+
execute(args: {
|
|
328
|
+
id: string;
|
|
329
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
330
|
+
};
|
|
331
|
+
readonly hivemind_validate: {
|
|
332
|
+
description: string;
|
|
333
|
+
args: {
|
|
334
|
+
id: import("zod").ZodString;
|
|
335
|
+
};
|
|
336
|
+
execute(args: {
|
|
337
|
+
id: string;
|
|
338
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
339
|
+
};
|
|
340
|
+
readonly hivemind_stats: {
|
|
341
|
+
description: string;
|
|
342
|
+
args: {};
|
|
343
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
344
|
+
};
|
|
345
|
+
readonly hivemind_index: {
|
|
346
|
+
description: string;
|
|
347
|
+
args: {
|
|
348
|
+
full: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
349
|
+
};
|
|
350
|
+
execute(args: {
|
|
351
|
+
full?: boolean | undefined;
|
|
352
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
353
|
+
};
|
|
354
|
+
readonly hivemind_sync: {
|
|
355
|
+
description: string;
|
|
356
|
+
args: {};
|
|
357
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
358
|
+
};
|
|
359
|
+
readonly "semantic-memory_store": any;
|
|
360
|
+
readonly "semantic-memory_find": any;
|
|
361
|
+
readonly "semantic-memory_get": any;
|
|
362
|
+
readonly "semantic-memory_remove": any;
|
|
363
|
+
readonly "semantic-memory_validate": any;
|
|
364
|
+
readonly "semantic-memory_list": any;
|
|
365
|
+
readonly "semantic-memory_stats": any;
|
|
366
|
+
readonly "semantic-memory_check": any;
|
|
367
|
+
readonly "semantic-memory_upsert": any;
|
|
368
|
+
readonly cass_search: any;
|
|
369
|
+
readonly cass_view: any;
|
|
370
|
+
readonly cass_expand: any;
|
|
371
|
+
readonly cass_health: any;
|
|
372
|
+
readonly cass_index: any;
|
|
373
|
+
readonly cass_stats: any;
|
|
374
|
+
};
|
|
375
|
+
export declare const cassTools: {
|
|
376
|
+
readonly hivemind_store: {
|
|
377
|
+
description: string;
|
|
378
|
+
args: {
|
|
379
|
+
information: import("zod").ZodString;
|
|
380
|
+
collection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
381
|
+
tags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
382
|
+
metadata: import("zod").ZodOptional<import("zod").ZodString>;
|
|
383
|
+
confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
384
|
+
autoTag: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
385
|
+
autoLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
386
|
+
extractEntities: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
387
|
+
};
|
|
388
|
+
execute(args: {
|
|
389
|
+
information: string;
|
|
390
|
+
collection?: string | undefined;
|
|
391
|
+
tags?: string | undefined;
|
|
392
|
+
metadata?: string | undefined;
|
|
393
|
+
confidence?: number | undefined;
|
|
394
|
+
autoTag?: boolean | undefined;
|
|
395
|
+
autoLink?: boolean | undefined;
|
|
396
|
+
extractEntities?: boolean | undefined;
|
|
397
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
398
|
+
};
|
|
399
|
+
readonly hivemind_find: {
|
|
400
|
+
description: string;
|
|
401
|
+
args: {
|
|
402
|
+
query: import("zod").ZodString;
|
|
403
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
404
|
+
collection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
405
|
+
expand: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
406
|
+
fts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
407
|
+
};
|
|
408
|
+
execute(args: {
|
|
409
|
+
query: string;
|
|
410
|
+
limit?: number | undefined;
|
|
411
|
+
collection?: string | undefined;
|
|
412
|
+
expand?: boolean | undefined;
|
|
413
|
+
fts?: boolean | undefined;
|
|
414
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
415
|
+
};
|
|
416
|
+
readonly hivemind_get: {
|
|
417
|
+
description: string;
|
|
418
|
+
args: {
|
|
419
|
+
id: import("zod").ZodString;
|
|
420
|
+
};
|
|
421
|
+
execute(args: {
|
|
422
|
+
id: string;
|
|
423
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
424
|
+
};
|
|
425
|
+
readonly hivemind_remove: {
|
|
426
|
+
description: string;
|
|
427
|
+
args: {
|
|
428
|
+
id: import("zod").ZodString;
|
|
429
|
+
};
|
|
430
|
+
execute(args: {
|
|
431
|
+
id: string;
|
|
432
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
433
|
+
};
|
|
434
|
+
readonly hivemind_validate: {
|
|
435
|
+
description: string;
|
|
436
|
+
args: {
|
|
437
|
+
id: import("zod").ZodString;
|
|
438
|
+
};
|
|
439
|
+
execute(args: {
|
|
440
|
+
id: string;
|
|
441
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
442
|
+
};
|
|
443
|
+
readonly hivemind_stats: {
|
|
444
|
+
description: string;
|
|
445
|
+
args: {};
|
|
446
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
447
|
+
};
|
|
448
|
+
readonly hivemind_index: {
|
|
449
|
+
description: string;
|
|
450
|
+
args: {
|
|
451
|
+
full: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
452
|
+
};
|
|
453
|
+
execute(args: {
|
|
454
|
+
full?: boolean | undefined;
|
|
455
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
456
|
+
};
|
|
457
|
+
readonly hivemind_sync: {
|
|
458
|
+
description: string;
|
|
459
|
+
args: {};
|
|
460
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
461
|
+
};
|
|
462
|
+
readonly "semantic-memory_store": any;
|
|
463
|
+
readonly "semantic-memory_find": any;
|
|
464
|
+
readonly "semantic-memory_get": any;
|
|
465
|
+
readonly "semantic-memory_remove": any;
|
|
466
|
+
readonly "semantic-memory_validate": any;
|
|
467
|
+
readonly "semantic-memory_list": any;
|
|
468
|
+
readonly "semantic-memory_stats": any;
|
|
469
|
+
readonly "semantic-memory_check": any;
|
|
470
|
+
readonly "semantic-memory_upsert": any;
|
|
471
|
+
readonly cass_search: any;
|
|
472
|
+
readonly cass_view: any;
|
|
473
|
+
readonly cass_expand: any;
|
|
474
|
+
readonly cass_health: any;
|
|
475
|
+
readonly cass_index: any;
|
|
476
|
+
readonly cass_stats: any;
|
|
477
|
+
};
|
|
478
|
+
export declare const resetMemoryCache: typeof resetHivemindCache;
|
|
479
|
+
//# sourceMappingURL=hivemind-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hivemind-tools.d.ts","sourceRoot":"","sources":["../src/hivemind-tools.ts"],"names":[],"mappings":"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"}
|