opencode-orchestrator 1.2.71 → 1.3.3
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 +39 -1
- package/dist/core/knowledge/context-provider.d.ts +8 -0
- package/dist/core/knowledge/graph-parser.d.ts +39 -0
- package/dist/core/knowledge/hybrid-search.d.ts +65 -0
- package/dist/core/knowledge/index.d.ts +15 -0
- package/dist/core/knowledge/memory-consolidation.d.ts +38 -0
- package/dist/core/knowledge/safety-guards.d.ts +39 -0
- package/dist/core/knowledge/scratchpad.d.ts +38 -0
- package/dist/core/knowledge/tag-indexer.d.ts +73 -0
- package/dist/index.js +674 -98
- package/dist/plugin-handlers/assistant-done-handler.d.ts +3 -4
- package/dist/plugin-handlers/index.d.ts +0 -1
- package/dist/plugin-handlers/interfaces/session-state.d.ts +1 -0
- package/dist/plugin-handlers/interfaces/system-transform.d.ts +3 -0
- package/dist/shared/message/constants/plugin-hooks.d.ts +6 -2
- package/package.json +4 -4
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Plugin Handlers - Assistant Done Handler
|
|
3
3
|
*
|
|
4
|
-
* Handles assistant.
|
|
5
|
-
* - Delegates to HookRegistry
|
|
4
|
+
* Handles completed assistant turns using supported OpenCode session APIs.
|
|
6
5
|
*/
|
|
7
6
|
import type { AssistantDoneHandlerContext } from "./interfaces/index.js";
|
|
8
7
|
export type { AssistantDoneHandlerContext } from "./interfaces/index.js";
|
|
9
8
|
/**
|
|
10
|
-
*
|
|
9
|
+
* Process a completed assistant turn and run internal done-hooks.
|
|
11
10
|
*/
|
|
12
|
-
export declare function
|
|
11
|
+
export declare function handleCompletedAssistantMessage(ctx: AssistantDoneHandlerContext, sessionID: string, messageID: string): Promise<void>;
|
|
@@ -3,7 +3,6 @@ export * from "./config-handler.js";
|
|
|
3
3
|
export * from "./event-handler.js";
|
|
4
4
|
export * from "./tool-execute-handler.js";
|
|
5
5
|
export * from "./tool-execute-pre-handler.js";
|
|
6
|
-
export * from "./assistant-done-handler.js";
|
|
7
6
|
export * from "./session-compacting-handler.js";
|
|
8
7
|
export * from "./system-transform-handler.js";
|
|
9
8
|
export * from "./interfaces/index.js";
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* System Transform Handler Interfaces
|
|
3
3
|
*/
|
|
4
|
+
import type { Model } from "@opencode-ai/sdk";
|
|
4
5
|
/**
|
|
5
6
|
* Input for system transform hook
|
|
6
7
|
*/
|
|
7
8
|
export interface SystemTransformInput {
|
|
8
9
|
/** Session ID for the chat (optional per opencode Plugin type) */
|
|
9
10
|
sessionID?: string;
|
|
11
|
+
/** Active model metadata exposed by the OpenCode hook */
|
|
12
|
+
model?: Model;
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
15
|
* Output for system transform hook
|
|
@@ -7,9 +7,13 @@
|
|
|
7
7
|
export declare const PLUGIN_HOOKS: {
|
|
8
8
|
/** Intercepts user messages before sending to LLM */
|
|
9
9
|
readonly CHAT_MESSAGE: "chat.message";
|
|
10
|
-
/** Runs
|
|
11
|
-
readonly
|
|
10
|
+
/** Runs before any tool call */
|
|
11
|
+
readonly TOOL_EXECUTE_BEFORE: "tool.execute.before";
|
|
12
12
|
/** Runs after any tool call completes */
|
|
13
13
|
readonly TOOL_EXECUTE_AFTER: "tool.execute.after";
|
|
14
|
+
/** Preserves custom compaction context */
|
|
15
|
+
readonly EXPERIMENTAL_SESSION_COMPACTING: "experimental.session.compacting";
|
|
16
|
+
/** Injects dynamic system prompt additions */
|
|
17
|
+
readonly EXPERIMENTAL_CHAT_SYSTEM_TRANSFORM: "experimental.chat.system.transform";
|
|
14
18
|
};
|
|
15
19
|
export type PluginHookName = typeof PLUGIN_HOOKS[keyof typeof PLUGIN_HOOKS];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "opencode-orchestrator",
|
|
3
3
|
"displayName": "OpenCode Orchestrator",
|
|
4
4
|
"description": "Distributed Cognitive Architecture for OpenCode. Turns simple prompts into specialized multi-agent workflows (Planner, Coder, Reviewer).",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.3.3",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"node": ">=24"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@opencode-ai/plugin": "^1.
|
|
77
|
-
"@opencode-ai/sdk": "^1.
|
|
76
|
+
"@opencode-ai/plugin": "^1.15.13",
|
|
77
|
+
"@opencode-ai/sdk": "^1.15.13",
|
|
78
78
|
"jsonc-parser": "^3.3.1",
|
|
79
79
|
"zod": "^4.3.6"
|
|
80
80
|
},
|
|
@@ -85,4 +85,4 @@
|
|
|
85
85
|
"typescript": "^5.7.0",
|
|
86
86
|
"vitest": "^4.0.17"
|
|
87
87
|
}
|
|
88
|
-
}
|
|
88
|
+
}
|