opencode-hive 1.3.4 → 1.3.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/README.md +35 -0
- package/dist/hive-core/src/services/sessionService.d.ts +8 -1
- package/dist/hive-core/src/types.d.ts +8 -0
- package/dist/hive-core/src/utils/paths.d.ts +1 -0
- package/dist/index.js +682 -270
- package/dist/opencode-hive/src/hooks/variant-hook.d.ts +14 -2
- package/dist/opencode-hive/src/utils/compaction-anchor.d.ts +14 -0
- package/package.json +4 -4
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import type { ConfigService } from 'hive-core';
|
|
1
|
+
import type { ConfigService, SessionService, SessionKind } from 'hive-core';
|
|
2
2
|
export declare function normalizeVariant(variant: string | undefined): string | undefined;
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function classifySession(agent: string, customAgents?: Record<string, {
|
|
4
|
+
baseAgent: string;
|
|
5
|
+
}>): {
|
|
6
|
+
sessionKind: SessionKind;
|
|
7
|
+
baseAgent?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function createVariantHook(configService: ConfigService, sessionService?: SessionService, customAgents?: Record<string, {
|
|
10
|
+
baseAgent: string;
|
|
11
|
+
}>, taskWorkerRecovery?: {
|
|
12
|
+
featureName: string;
|
|
13
|
+
taskFolder: string;
|
|
14
|
+
workerPromptPath: string;
|
|
15
|
+
}): (input: {
|
|
4
16
|
sessionID: string;
|
|
5
17
|
agent?: string;
|
|
6
18
|
model?: {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CompactionSessionContext {
|
|
2
|
+
agent?: string;
|
|
3
|
+
baseAgent?: string;
|
|
4
|
+
sessionKind?: 'primary' | 'subagent' | 'task-worker' | 'unknown';
|
|
5
|
+
featureName?: string;
|
|
6
|
+
taskFolder?: string;
|
|
7
|
+
workerPromptPath?: string;
|
|
8
|
+
directivePrompt?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CompactionReanchor {
|
|
11
|
+
prompt: string;
|
|
12
|
+
context: string[];
|
|
13
|
+
}
|
|
14
|
+
export declare function buildCompactionReanchor(ctx: CompactionSessionContext): CompactionReanchor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-hive",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenCode plugin for Agent Hive - from vibe coding to hive coding",
|
|
6
6
|
"license": "MIT WITH Commons-Clause",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"simple-git": "^3.27.0"
|
|
40
40
|
},
|
|
41
41
|
"optionalDependencies": {
|
|
42
|
-
"grep-mcp": "^1.1.0",
|
|
43
42
|
"@notprolands/ast-grep-mcp": "^1.1.1",
|
|
44
43
|
"@upstash/context7-mcp": "^2.1.0",
|
|
45
|
-
"exa-mcp-server": "^3.1.5"
|
|
44
|
+
"exa-mcp-server": "^3.1.5",
|
|
45
|
+
"grep-mcp": "^1.1.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"hive-core": "workspace:*",
|
|
49
48
|
"@opencode-ai/plugin": "^1.0.143",
|
|
50
49
|
"@opencode-ai/sdk": "^0.13.0",
|
|
51
50
|
"@types/bun": "^1.2.0",
|
|
52
51
|
"@types/node": "^20.0.0",
|
|
52
|
+
"hive-core": "workspace:*",
|
|
53
53
|
"typescript": "^5.0.0"
|
|
54
54
|
},
|
|
55
55
|
"files": [
|