chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
export declare const AGENTS_INJECTOR_STORAGE: string;
|
||||
export declare const AGENTS_FILENAME = "AGENTS.md";
|
||||
@@ -0,0 +1,5 @@
|
||||
export declare function resolveFilePath(rootDirectory: string, path: string): string | null;
|
||||
export declare function findAgentsMdUp(input: {
|
||||
startDir: string;
|
||||
rootDir: string;
|
||||
}): string[];
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
import type { PluginInput } from "@opencode-ai/plugin";
|
||||
interface ToolExecuteInput {
|
||||
tool: string;
|
||||
sessionID: string;
|
||||
callID: string;
|
||||
}
|
||||
interface ToolExecuteOutput {
|
||||
title: string;
|
||||
output: string;
|
||||
metadata: unknown;
|
||||
}
|
||||
interface ToolExecuteBeforeOutput {
|
||||
args: unknown;
|
||||
}
|
||||
interface EventInput {
|
||||
event: {
|
||||
type: string;
|
||||
properties?: unknown;
|
||||
};
|
||||
}
|
||||
export declare function createDirectoryAgentsInjectorHook(ctx: PluginInput, modelCacheState?: {
|
||||
anthropicContext1MEnabled: boolean;
|
||||
}): {
|
||||
"tool.execute.before": (input: ToolExecuteInput, output: ToolExecuteBeforeOutput) => Promise<void>;
|
||||
"tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
|
||||
event: ({ event }: EventInput) => Promise<void>;
|
||||
};
|
||||
export {};
|
||||
@@ -0,0 +1 @@
|
||||
export { createDirectoryAgentsInjectorHook } from "./hook";
|
||||
@@ -0,0 +1,16 @@
|
||||
import type { PluginInput } from "@opencode-ai/plugin";
|
||||
import type { createDynamicTruncator } from "../../shared/dynamic-truncator";
|
||||
type DynamicTruncator = ReturnType<typeof createDynamicTruncator>;
|
||||
export declare function processFilePathForAgentsInjection(input: {
|
||||
ctx: PluginInput;
|
||||
truncator: DynamicTruncator;
|
||||
sessionCaches: Map<string, Set<string>>;
|
||||
filePath: string;
|
||||
sessionID: string;
|
||||
output: {
|
||||
title: string;
|
||||
output: string;
|
||||
metadata: unknown;
|
||||
};
|
||||
}): Promise<void>;
|
||||
export {};
|
||||
@@ -0,0 +1 @@
|
||||
export declare const loadInjectedPaths: (sessionID: string) => Set<string>, saveInjectedPaths: (sessionID: string, paths: Set<string>) => void, clearInjectedPaths: (sessionID: string) => void;
|
||||
Reference in New Issue
Block a user