oh-my-opencode-serverlocal 0.1.2 → 0.1.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.
@@ -1,53 +0,0 @@
1
- /**
2
- * Council Manager
3
- *
4
- * Orchestrates multi-LLM council sessions: launches councillors in
5
- * parallel and collects their results for the council agent to synthesize.
6
- */
7
- import type { PluginInput } from '@opencode-ai/plugin';
8
- import type { PluginConfig } from '../config';
9
- import type { CouncilResult } from '../config/council-schema';
10
- import type { SubagentDepthTracker } from '../utils/subagent-depth';
11
- export declare class CouncilManager {
12
- private client;
13
- private directory;
14
- private config?;
15
- private depthTracker?;
16
- private tmuxEnabled;
17
- private deprecatedFields?;
18
- private legacyMasterModel?;
19
- constructor(ctx: PluginInput, config?: PluginConfig, depthTracker?: SubagentDepthTracker, tmuxEnabled?: boolean);
20
- /** Return deprecated config fields detected during parsing (for tool warnings). */
21
- getDeprecatedFields(): string[] | undefined;
22
- /** Return the legacy master.model if it was used as fallback. */
23
- getLegacyMasterModel(): string | undefined;
24
- /**
25
- * Run a full council session.
26
- *
27
- * 1. Look up the preset
28
- * 2. Launch all councillors in parallel
29
- * 3. Collect results (respecting timeout)
30
- * 4. Return formatted councillor results for synthesis
31
- */
32
- runCouncil(prompt: string, presetName: string | undefined, parentSessionId: string): Promise<CouncilResult>;
33
- /**
34
- * Inject a start notification into the parent session so the user
35
- * sees immediate feedback while councillors are spinning up.
36
- */
37
- private sendStartNotification;
38
- /**
39
- * Run a single agent session: create → register → prompt → extract → cleanup.
40
- */
41
- private runAgentSession;
42
- private runCouncillors;
43
- /**
44
- * Run a single councillor across its configured model chain.
45
- *
46
- * For each model in the chain, empty responses are retried up to
47
- * `maxRetries` times (providers that silently rate-limit). Any other
48
- * failure or timeout advances to the next model in the chain. The
49
- * councillor only fails once every model has been exhausted; the reported
50
- * `model` and `error` reflect the last model tried.
51
- */
52
- private runCouncillorWithRetry;
53
- }
@@ -1 +0,0 @@
1
- export { CouncilManager } from './council-manager';
@@ -1,10 +0,0 @@
1
- import { type PluginInput, type ToolDefinition } from '@opencode-ai/plugin';
2
- import type { CouncilManager } from '../council/council-manager';
3
- /**
4
- * Creates the council_session tool for multi-LLM orchestration.
5
- *
6
- * This tool triggers a full council session: parallel councillors →
7
- * formatted results returned to the council agent for synthesis.
8
- * Available to the council agent.
9
- */
10
- export declare function createCouncilTool(_ctx: PluginInput, councilManager: CouncilManager): Record<string, ToolDefinition>;
@@ -1,20 +0,0 @@
1
- /**
2
- * Pure helpers for councillor model fallback chains.
3
- *
4
- * Kept free of any schema/validation library import so that runtime consumers
5
- * (e.g. `CouncilManager`) can resolve a councillor's ordered model chain
6
- * without pulling in zod or the config schema module.
7
- */
8
- /** A single model in a councillor fallback chain, with optional variant. */
9
- export type CouncillorModelEntry = {
10
- id: string;
11
- variant?: string;
12
- };
13
- /**
14
- * Flatten a councillor model config into an ordered list of model entries.
15
- *
16
- * Accepts either a single "provider/model" string or an ordered fallback
17
- * chain (array of strings and/or `{ id, variant }` entries). Entries that
18
- * don't carry their own variant fall back to the shared `fallbackVariant`.
19
- */
20
- export declare function normalizeCouncillorModels(model: string | Array<string | CouncillorModelEntry>, fallbackVariant?: string): CouncillorModelEntry[];