chore: include pre-built dist for github install

This commit is contained in:
Robin Mordasiewicz
2026-03-14 04:56:50 +00:00
parent a7f0a4cf46
commit bce8ff3a75
1011 changed files with 150081 additions and 0 deletions
@@ -0,0 +1,5 @@
import type { BackgroundManager } from "../../features/background-agent";
import type { PluginInput } from "@opencode-ai/plugin";
import type { CallOmoAgentArgs } from "./types";
import type { ToolContextWithMetadata } from "./tool-context-with-metadata";
export declare function executeBackgroundAgent(args: CallOmoAgentArgs, toolContext: ToolContextWithMetadata, manager: BackgroundManager, client: PluginInput["client"]): Promise<string>;
+14
View File
@@ -0,0 +1,14 @@
import type { CallOmoAgentArgs } from "./types";
import type { BackgroundManager } from "../../features/background-agent";
import type { PluginInput } from "@opencode-ai/plugin";
import type { FallbackEntry } from "../../shared/model-requirements";
export declare function executeBackground(args: CallOmoAgentArgs, toolContext: {
sessionID: string;
messageID: string;
agent: string;
abort: AbortSignal;
metadata?: (input: {
title?: string;
metadata?: Record<string, unknown>;
}) => void;
}, manager: BackgroundManager, client: PluginInput["client"], fallbackChain?: FallbackEntry[]): Promise<string>;
+11
View File
@@ -0,0 +1,11 @@
import type { PluginInput } from "@opencode-ai/plugin";
export declare function waitForCompletion(sessionID: string, toolContext: {
sessionID: string;
messageID: string;
agent: string;
abort: AbortSignal;
metadata?: (input: {
title?: string;
metadata?: Record<string, unknown>;
}) => void;
}, ctx: PluginInput): Promise<void>;
+2
View File
@@ -0,0 +1,2 @@
export declare const ALLOWED_AGENTS: readonly ["explore", "librarian", "oracle", "hephaestus", "metis", "momus", "multimodal-looker"];
export declare const CALL_OMO_AGENT_DESCRIPTION = "Spawn explore/librarian agent. run_in_background REQUIRED (true=async with task_id, false=sync).\n\nAvailable: {agents}\n\nPass `session_id=<id>` to continue previous agent with full context. Nested subagent depth is tracked automatically and blocked past the configured limit. Prompts MUST be in English. Use `background_output` for async results.";
+3
View File
@@ -0,0 +1,3 @@
export * from "./types";
export * from "./constants";
export { createCallOmoAgent } from "./tools";
+1
View File
@@ -0,0 +1 @@
export { getMessageDir } from "../../shared/opencode-message-dir";
+2
View File
@@ -0,0 +1,2 @@
import type { PluginInput } from "@opencode-ai/plugin";
export declare function processMessages(sessionID: string, ctx: PluginInput): Promise<string>;
@@ -0,0 +1 @@
export { getMessageDir } from "../../shared";
+15
View File
@@ -0,0 +1,15 @@
import type { CallOmoAgentArgs } from "./types";
import type { PluginInput } from "@opencode-ai/plugin";
export declare function createOrGetSession(args: CallOmoAgentArgs, toolContext: {
sessionID: string;
messageID: string;
agent: string;
abort: AbortSignal;
metadata?: (input: {
title?: string;
metadata?: Record<string, unknown>;
}) => void;
}, ctx: PluginInput): Promise<{
sessionID: string;
isNew: boolean;
}>;
+10
View File
@@ -0,0 +1,10 @@
import type { PluginInput } from "@opencode-ai/plugin";
import type { CallOmoAgentArgs } from "./types";
import type { ToolContextWithMetadata } from "./tool-context-with-metadata";
export declare function resolveOrCreateSessionId(ctx: PluginInput, args: CallOmoAgentArgs, toolContext: ToolContextWithMetadata): Promise<{
ok: true;
sessionID: string;
} | {
ok: false;
error: string;
}>;
+29
View File
@@ -0,0 +1,29 @@
import type { CallOmoAgentArgs } from "./types";
import type { PluginInput } from "@opencode-ai/plugin";
import { clearSessionFallbackChain, setSessionFallbackChain } from "../../hooks/model-fallback/hook";
import type { FallbackEntry } from "../../shared/model-requirements";
import { waitForCompletion } from "./completion-poller";
import { processMessages } from "./message-processor";
import { createOrGetSession } from "./session-creator";
type ExecuteSyncDeps = {
createOrGetSession: typeof createOrGetSession;
waitForCompletion: typeof waitForCompletion;
processMessages: typeof processMessages;
setSessionFallbackChain: typeof setSessionFallbackChain;
clearSessionFallbackChain: typeof clearSessionFallbackChain;
};
type SpawnReservation = {
commit: () => number;
rollback: () => void;
};
export declare function executeSync(args: CallOmoAgentArgs, toolContext: {
sessionID: string;
messageID: string;
agent: string;
abort: AbortSignal;
metadata?: (input: {
title?: string;
metadata?: Record<string, unknown>;
}) => void | Promise<void>;
}, ctx: PluginInput, deps?: ExecuteSyncDeps, fallbackChain?: FallbackEntry[], spawnReservation?: SpawnReservation): Promise<string>;
export {};
@@ -0,0 +1,10 @@
export type ToolContextWithMetadata = {
sessionID: string;
messageID: string;
agent: string;
abort: AbortSignal;
metadata?: (input: {
title?: string;
metadata?: Record<string, unknown>;
}) => void;
};
+4
View File
@@ -0,0 +1,4 @@
import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
import type { BackgroundManager } from "../../features/background-agent";
import type { CategoriesConfig, AgentOverrides } from "../../config/schema";
export declare function createCallOmoAgent(ctx: PluginInput, backgroundManager: BackgroundManager, disabledAgents?: string[], agentOverrides?: AgentOverrides, userCategories?: CategoriesConfig): ToolDefinition;
+34
View File
@@ -0,0 +1,34 @@
import type { ALLOWED_AGENTS } from "./constants";
export type AllowedAgentType = (typeof ALLOWED_AGENTS)[number];
export interface CallOmoAgentArgs {
description: string;
prompt: string;
subagent_type: string;
run_in_background: boolean;
session_id?: string;
}
export interface CallOmoAgentSyncResult {
title: string;
metadata: {
summary?: Array<{
id: string;
tool: string;
state: {
status: string;
title?: string;
};
}>;
sessionId: string;
};
output: string;
}
export type ToolContextWithMetadata = {
sessionID: string;
messageID: string;
agent: string;
abort: AbortSignal;
metadata?: (input: {
title?: string;
metadata?: Record<string, unknown>;
}) => void;
};