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
+1
View File
@@ -0,0 +1 @@
export declare function isPrometheusAgent(agentName: string | undefined): boolean;
+16
View File
@@ -0,0 +1,16 @@
import type { PluginInput } from "@opencode-ai/plugin";
type OpencodeClient = PluginInput["client"];
/**
* Get the effective agent for the session.
* Priority order:
* 1. In-memory session agent (most recent, set by /start-work)
* 2. Boulder state agent (persisted across restarts, fixes #927)
* 3. Message files (fallback for sessions without boulder state)
*
* This fixes issue #927 where after interruption:
* - In-memory map is cleared (process restart)
* - Message files return "prometheus" (oldest message from /plan)
* - But boulder.json has agent: "atlas" (set by /start-work)
*/
export declare function getAgentFromSession(sessionID: string, directory: string, client?: OpencodeClient): Promise<string | undefined>;
export {};
+7
View File
@@ -0,0 +1,7 @@
export declare const HOOK_NAME = "prometheus-md-only";
export declare const PROMETHEUS_AGENT = "prometheus";
export declare const ALLOWED_EXTENSIONS: string[];
export declare const ALLOWED_PATH_PREFIX = ".sisyphus";
export declare const BLOCKED_TOOLS: string[];
export declare const PLANNING_CONSULT_WARNING: string;
export declare const PROMETHEUS_WORKFLOW_REMINDER: string;
+11
View File
@@ -0,0 +1,11 @@
import type { PluginInput } from "@opencode-ai/plugin";
export declare function createPrometheusMdOnlyHook(ctx: PluginInput): {
"tool.execute.before": (input: {
tool: string;
sessionID: string;
callID: string;
}, output: {
args: Record<string, unknown>;
message?: string;
}) => Promise<void>;
};
+2
View File
@@ -0,0 +1,2 @@
export * from "./constants";
export { createPrometheusMdOnlyHook } from "./hook";
+10
View File
@@ -0,0 +1,10 @@
/**
* Cross-platform path validator for Prometheus file writes.
* Uses path.resolve/relative instead of string matching to handle:
* - Windows backslashes (e.g., .sisyphus\\plans\\x.md)
* - Mixed separators (e.g., .sisyphus\\plans/x.md)
* - Case-insensitive directory/extension matching
* - Workspace confinement (blocks paths outside root or via traversal)
* - Nested project paths (e.g., parent/.sisyphus/... when ctx.directory is parent)
*/
export declare function isAllowedFile(filePath: string, workspaceRoot: string): boolean;