drizzy-agent 0.2.1 → 0.3.0
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/LICENSE.md +1 -1
- package/README.md +19 -3
- package/dist/cli/config-manager/detect-and-remove-oh-my-opencode.d.ts +29 -0
- package/dist/cli/config-manager/detect-current-config.d.ts +13 -1
- package/dist/cli/config-manager/oh-my-opencode-paths.d.ts +6 -0
- package/dist/cli/config-manager.d.ts +2 -0
- package/dist/cli/index.js +10871 -10925
- package/dist/cli/run/agent-resolver.d.ts +2 -2
- package/dist/cli/tui-install-prompts.d.ts +2 -1
- package/dist/cli/types.d.ts +6 -0
- package/dist/config/index.d.ts +2 -2
- package/dist/config/schema/{oh-my-opencode-config.d.ts → drizzy-agent-config.d.ts} +2 -2
- package/dist/config/schema.d.ts +1 -1
- package/dist/create-hooks.d.ts +2 -2
- package/dist/create-managers.d.ts +2 -2
- package/dist/create-tools.d.ts +2 -2
- package/dist/features/claude-code-plugin-loader/types.d.ts +1 -1
- package/dist/features/claude-tasks/session-storage.d.ts +5 -5
- package/dist/features/claude-tasks/storage.d.ts +4 -4
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +2 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/recovery-hook.d.ts +2 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/summarize-retry-strategy.d.ts +2 -2
- package/dist/hooks/auto-update-checker/constants.d.ts +2 -2
- package/dist/hooks/comment-checker/downloader.d.ts +1 -1
- package/dist/hooks/preemptive-compaction.d.ts +2 -2
- package/dist/hooks/runtime-fallback/fallback-models.d.ts +2 -2
- package/dist/hooks/runtime-fallback/types.d.ts +3 -3
- package/dist/hooks/shared/compaction-model-resolver.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +336 -338
- package/dist/mcp/index.d.ts +2 -2
- package/dist/plugin/available-categories.d.ts +2 -2
- package/dist/plugin/chat-message.d.ts +2 -2
- package/dist/plugin/event.d.ts +2 -2
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +2 -2
- package/dist/plugin/hooks/create-core-hooks.d.ts +2 -2
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -2
- package/dist/plugin/hooks/create-skill-hooks.d.ts +2 -2
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -2
- package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -2
- package/dist/plugin/skill-context.d.ts +2 -2
- package/dist/plugin/tool-registry.d.ts +2 -2
- package/dist/plugin/ultrawork-model-override.d.ts +3 -3
- package/dist/plugin/unstable-agent-babysitter.d.ts +2 -2
- package/dist/plugin-config.d.ts +5 -5
- package/dist/plugin-handlers/agent-config-handler.d.ts +2 -2
- package/dist/plugin-handlers/command-config-handler.d.ts +2 -2
- package/dist/plugin-handlers/config-handler.d.ts +2 -2
- package/dist/plugin-handlers/mcp-config-handler.d.ts +2 -2
- package/dist/plugin-handlers/plugin-components-loader.d.ts +2 -2
- package/dist/plugin-handlers/tool-config-handler.d.ts +2 -2
- package/dist/plugin-interface.d.ts +2 -2
- package/dist/shared/agent-variant.d.ts +4 -4
- package/dist/shared/data-path.d.ts +3 -3
- package/dist/shared/external-plugin-detector.d.ts +1 -1
- package/dist/shared/system-directive.d.ts +2 -2
- package/dist/tools/task/task-create.d.ts +2 -2
- package/dist/tools/task/task-get.d.ts +2 -2
- package/dist/tools/task/task-list.d.ts +2 -2
- package/dist/tools/task/task-update.d.ts +2 -2
- package/package.json +12 -12
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config/schema";
|
|
2
2
|
export { McpNameSchema, type McpName } from "./types";
|
|
3
3
|
type RemoteMcpConfig = {
|
|
4
4
|
type: "remote";
|
|
@@ -7,4 +7,4 @@ type RemoteMcpConfig = {
|
|
|
7
7
|
headers?: Record<string, string>;
|
|
8
8
|
oauth?: false;
|
|
9
9
|
};
|
|
10
|
-
export declare function createBuiltinMcps(disabledMcps?: string[], config?:
|
|
10
|
+
export declare function createBuiltinMcps(disabledMcps?: string[], config?: DrizzyAgentConfig): Record<string, RemoteMcpConfig>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AvailableCategory } from "../agents/dynamic-agent-prompt-builder";
|
|
2
|
-
import type {
|
|
3
|
-
export declare function createAvailableCategories(pluginConfig:
|
|
2
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
3
|
+
export declare function createAvailableCategories(pluginConfig: DrizzyAgentConfig): AvailableCategory[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
import type { PluginContext } from "./types";
|
|
3
3
|
import type { CreatedHooks } from "../create-hooks";
|
|
4
4
|
type FirstMessageVariantGate = {
|
|
@@ -24,7 +24,7 @@ export type ChatMessageInput = {
|
|
|
24
24
|
};
|
|
25
25
|
export declare function createChatMessageHandler(args: {
|
|
26
26
|
ctx: PluginContext;
|
|
27
|
-
pluginConfig:
|
|
27
|
+
pluginConfig: DrizzyAgentConfig;
|
|
28
28
|
firstMessageVariantGate: FirstMessageVariantGate;
|
|
29
29
|
hooks: CreatedHooks;
|
|
30
30
|
}): (input: ChatMessageInput, output: ChatMessageHandlerOutput) => Promise<void>;
|
package/dist/plugin/event.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
import type { PluginContext } from "./types";
|
|
3
3
|
import type { CreatedHooks } from "../create-hooks";
|
|
4
4
|
import type { Managers } from "../create-managers";
|
|
@@ -13,7 +13,7 @@ type FirstMessageVariantGate = {
|
|
|
13
13
|
type EventInput = Parameters<NonNullable<NonNullable<CreatedHooks["writeExistingFileGuard"]>["event"]>>[0];
|
|
14
14
|
export declare function createEventHandler(args: {
|
|
15
15
|
ctx: PluginContext;
|
|
16
|
-
pluginConfig:
|
|
16
|
+
pluginConfig: DrizzyAgentConfig;
|
|
17
17
|
firstMessageVariantGate: FirstMessageVariantGate;
|
|
18
18
|
managers: Managers;
|
|
19
19
|
hooks: CreatedHooks;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HookName,
|
|
1
|
+
import type { HookName, DrizzyAgentConfig } from "../../config";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
3
|
import type { PluginContext } from "../types";
|
|
4
4
|
import { createGptPermissionContinuationHook, createTodoContinuationEnforcer, createBackgroundNotificationHook, createStopContinuationGuardHook, createCompactionContextInjector, createCompactionTodoPreserverHook, createAtlasHook } from "../../hooks";
|
|
@@ -19,7 +19,7 @@ type SessionRecovery = {
|
|
|
19
19
|
} | null;
|
|
20
20
|
export declare function createContinuationHooks(args: {
|
|
21
21
|
ctx: PluginContext;
|
|
22
|
-
pluginConfig:
|
|
22
|
+
pluginConfig: DrizzyAgentConfig;
|
|
23
23
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
24
24
|
safeHookEnabled: boolean;
|
|
25
25
|
backgroundManager: BackgroundManager;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { HookName,
|
|
1
|
+
import type { HookName, DrizzyAgentConfig } from "../../config";
|
|
2
2
|
import type { PluginContext } from "../types";
|
|
3
3
|
import type { ModelCacheState } from "../../plugin-state";
|
|
4
4
|
export declare function createCoreHooks(args: {
|
|
5
5
|
ctx: PluginContext;
|
|
6
|
-
pluginConfig:
|
|
6
|
+
pluginConfig: DrizzyAgentConfig;
|
|
7
7
|
modelCacheState: ModelCacheState;
|
|
8
8
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
9
9
|
safeHookEnabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig, HookName } from "../../config";
|
|
2
2
|
import type { ModelCacheState } from "../../plugin-state";
|
|
3
3
|
import type { PluginContext } from "../types";
|
|
4
4
|
import { createContextWindowMonitorHook, createSessionRecoveryHook, createSessionNotification, createThinkModeHook, createModelFallbackHook, createAnthropicContextWindowLimitRecoveryHook, createAutoUpdateCheckerHook, createAgentUsageReminderHook, createNonInteractiveEnvHook, createInteractiveBashSessionHook, createRalphLoopHook, createEditErrorRecoveryHook, createDelegateTaskRetryHook, createTaskResumeInfoHook, createStartWorkHook, createPlannerMdOnlyHook, createCoderJuniorNotepadHook, createNoCoderGptHook, createNoGptcoderNonGptHook, createQuestionLabelTruncatorHook, createPreemptiveCompactionHook, createRuntimeFallbackHook } from "../../hooks";
|
|
@@ -30,7 +30,7 @@ export type SessionHooks = {
|
|
|
30
30
|
};
|
|
31
31
|
export declare function createSessionHooks(args: {
|
|
32
32
|
ctx: PluginContext;
|
|
33
|
-
pluginConfig:
|
|
33
|
+
pluginConfig: DrizzyAgentConfig;
|
|
34
34
|
modelCacheState: ModelCacheState;
|
|
35
35
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
36
36
|
safeHookEnabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
2
|
-
import type { HookName,
|
|
2
|
+
import type { HookName, DrizzyAgentConfig } from "../../config";
|
|
3
3
|
import type { LoadedSkill } from "../../features/opencode-skill-loader/types";
|
|
4
4
|
import type { PluginContext } from "../types";
|
|
5
5
|
import { createAutoSlashCommandHook, createCategorySkillReminderHook } from "../../hooks";
|
|
@@ -9,7 +9,7 @@ export type SkillHooks = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare function createSkillHooks(args: {
|
|
11
11
|
ctx: PluginContext;
|
|
12
|
-
pluginConfig:
|
|
12
|
+
pluginConfig: DrizzyAgentConfig;
|
|
13
13
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
14
14
|
safeHookEnabled: boolean;
|
|
15
15
|
mergedSkills: LoadedSkill[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HookName,
|
|
1
|
+
import type { HookName, DrizzyAgentConfig } from "../../config";
|
|
2
2
|
import type { ModelCacheState } from "../../plugin-state";
|
|
3
3
|
import type { PluginContext } from "../types";
|
|
4
4
|
import { createCommentCheckerHooks, createToolOutputTruncatorHook, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createRulesInjectorHook, createTasksTodowriteDisablerHook, createWriteExistingFileGuardHook, createHashlineReadEnhancerHook, createReadImageResizerHook, createJsonErrorRecoveryHook } from "../../hooks";
|
|
@@ -17,7 +17,7 @@ export type ToolGuardHooks = {
|
|
|
17
17
|
};
|
|
18
18
|
export declare function createToolGuardHooks(args: {
|
|
19
19
|
ctx: PluginContext;
|
|
20
|
-
pluginConfig:
|
|
20
|
+
pluginConfig: DrizzyAgentConfig;
|
|
21
21
|
modelCacheState: ModelCacheState;
|
|
22
22
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
23
23
|
safeHookEnabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../../config";
|
|
2
2
|
import type { PluginContext } from "../types";
|
|
3
3
|
import { createClaudeCodeHooksHook, createKeywordDetectorHook, createThinkingBlockValidatorHook } from "../../hooks";
|
|
4
4
|
import { createContextInjectorMessagesTransformHook } from "../../features/context-injector";
|
|
@@ -10,7 +10,7 @@ export type TransformHooks = {
|
|
|
10
10
|
};
|
|
11
11
|
export declare function createTransformHooks(args: {
|
|
12
12
|
ctx: PluginContext;
|
|
13
|
-
pluginConfig:
|
|
13
|
+
pluginConfig: DrizzyAgentConfig;
|
|
14
14
|
isHookEnabled: (hookName: string) => boolean;
|
|
15
15
|
safeHookEnabled?: boolean;
|
|
16
16
|
}): TransformHooks;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AvailableSkill } from "../agents/dynamic-agent-prompt-builder";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
3
3
|
import type { BrowserAutomationProvider } from "../config/schema/browser-automation";
|
|
4
4
|
import type { LoadedSkill } from "../features/opencode-skill-loader/types";
|
|
5
5
|
export type SkillContext = {
|
|
@@ -10,5 +10,5 @@ export type SkillContext = {
|
|
|
10
10
|
};
|
|
11
11
|
export declare function createSkillContext(args: {
|
|
12
12
|
directory: string;
|
|
13
|
-
pluginConfig:
|
|
13
|
+
pluginConfig: DrizzyAgentConfig;
|
|
14
14
|
}): Promise<SkillContext>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AvailableCategory } from "../agents/dynamic-agent-prompt-builder";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
3
3
|
import type { PluginContext, ToolsRecord } from "./types";
|
|
4
4
|
import type { Managers } from "../create-managers";
|
|
5
5
|
import type { SkillContext } from "./skill-context";
|
|
@@ -9,7 +9,7 @@ export type ToolRegistryResult = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare function createToolRegistry(args: {
|
|
11
11
|
ctx: PluginContext;
|
|
12
|
-
pluginConfig:
|
|
12
|
+
pluginConfig: DrizzyAgentConfig;
|
|
13
13
|
managers: Pick<Managers, "backgroundManager" | "tmuxSessionManager" | "skillMcpManager">;
|
|
14
14
|
skillContext: SkillContext;
|
|
15
15
|
availableCategories: AvailableCategory[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
export declare function detectUltrawork(text: string): boolean;
|
|
3
3
|
export type UltraworkOverrideResult = {
|
|
4
4
|
providerID?: string;
|
|
5
5
|
modelID?: string;
|
|
6
6
|
variant?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function resolveUltraworkOverride(pluginConfig:
|
|
8
|
+
export declare function resolveUltraworkOverride(pluginConfig: DrizzyAgentConfig, inputAgentName: string | undefined, output: {
|
|
9
9
|
message: Record<string, unknown>;
|
|
10
10
|
parts: Array<{
|
|
11
11
|
type: string;
|
|
@@ -13,7 +13,7 @@ export declare function resolveUltraworkOverride(pluginConfig: OhMyOpenCodeConfi
|
|
|
13
13
|
[key: string]: unknown;
|
|
14
14
|
}>;
|
|
15
15
|
}, sessionID?: string): UltraworkOverrideResult | null;
|
|
16
|
-
export declare function applyUltraworkModelOverrideOnMessage(pluginConfig:
|
|
16
|
+
export declare function applyUltraworkModelOverrideOnMessage(pluginConfig: DrizzyAgentConfig, inputAgentName: string | undefined, output: {
|
|
17
17
|
message: Record<string, unknown>;
|
|
18
18
|
parts: Array<{
|
|
19
19
|
type: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
import type { PluginContext } from "./types";
|
|
3
3
|
import type { BackgroundManager } from "../features/background-agent";
|
|
4
4
|
export declare function createUnstableAgentBabysitter(args: {
|
|
5
5
|
ctx: PluginContext;
|
|
6
6
|
backgroundManager: BackgroundManager;
|
|
7
|
-
pluginConfig:
|
|
7
|
+
pluginConfig: DrizzyAgentConfig;
|
|
8
8
|
}): {
|
|
9
9
|
event: ({ event }: {
|
|
10
10
|
event: {
|
package/dist/plugin-config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare function parseConfigPartially(rawConfig: Record<string, unknown>):
|
|
3
|
-
export declare function loadConfigFromPath(configPath: string, _ctx: unknown):
|
|
4
|
-
export declare function mergeConfigs(base:
|
|
5
|
-
export declare function loadPluginConfig(directory: string, ctx: unknown):
|
|
1
|
+
import { type DrizzyAgentConfig } from "./config";
|
|
2
|
+
export declare function parseConfigPartially(rawConfig: Record<string, unknown>): DrizzyAgentConfig | null;
|
|
3
|
+
export declare function loadConfigFromPath(configPath: string, _ctx: unknown): DrizzyAgentConfig | null;
|
|
4
|
+
export declare function mergeConfigs(base: DrizzyAgentConfig, override: DrizzyAgentConfig): DrizzyAgentConfig;
|
|
5
|
+
export declare function loadPluginConfig(directory: string, ctx: unknown): DrizzyAgentConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
import type { PluginComponents } from "./plugin-components-loader";
|
|
3
3
|
export declare function applyAgentConfig(params: {
|
|
4
4
|
config: Record<string, unknown>;
|
|
5
|
-
pluginConfig:
|
|
5
|
+
pluginConfig: DrizzyAgentConfig;
|
|
6
6
|
ctx: {
|
|
7
7
|
directory: string;
|
|
8
8
|
client?: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
import type { PluginComponents } from "./plugin-components-loader";
|
|
3
3
|
export declare function applyCommandConfig(params: {
|
|
4
4
|
config: Record<string, unknown>;
|
|
5
|
-
pluginConfig:
|
|
5
|
+
pluginConfig: DrizzyAgentConfig;
|
|
6
6
|
ctx: {
|
|
7
7
|
directory: string;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
import type { ModelCacheState } from "../plugin-state";
|
|
3
3
|
export { resolveCategoryConfig } from "./category-config-resolver";
|
|
4
4
|
export interface ConfigHandlerDeps {
|
|
@@ -6,7 +6,7 @@ export interface ConfigHandlerDeps {
|
|
|
6
6
|
directory: string;
|
|
7
7
|
client?: any;
|
|
8
8
|
};
|
|
9
|
-
pluginConfig:
|
|
9
|
+
pluginConfig: DrizzyAgentConfig;
|
|
10
10
|
modelCacheState: ModelCacheState;
|
|
11
11
|
}
|
|
12
12
|
export declare function createConfigHandler(deps: ConfigHandlerDeps): (config: Record<string, unknown>) => Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
import type { PluginComponents } from "./plugin-components-loader";
|
|
3
3
|
export declare function applyMcpConfig(params: {
|
|
4
4
|
config: Record<string, unknown>;
|
|
5
|
-
pluginConfig:
|
|
5
|
+
pluginConfig: DrizzyAgentConfig;
|
|
6
6
|
pluginComponents: PluginComponents;
|
|
7
7
|
}): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
export type PluginComponents = {
|
|
3
3
|
commands: Record<string, unknown>;
|
|
4
4
|
skills: Record<string, unknown>;
|
|
@@ -18,5 +18,5 @@ export type PluginComponents = {
|
|
|
18
18
|
}>;
|
|
19
19
|
};
|
|
20
20
|
export declare function loadPluginComponents(params: {
|
|
21
|
-
pluginConfig:
|
|
21
|
+
pluginConfig: DrizzyAgentConfig;
|
|
22
22
|
}): Promise<PluginComponents>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
export declare function applyToolConfig(params: {
|
|
3
3
|
config: Record<string, unknown>;
|
|
4
|
-
pluginConfig:
|
|
4
|
+
pluginConfig: DrizzyAgentConfig;
|
|
5
5
|
agentResult: Record<string, unknown>;
|
|
6
6
|
}): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { PluginContext, PluginInterface, ToolsRecord } from "./plugin/types";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DrizzyAgentConfig } from "./config";
|
|
3
3
|
import type { CreatedHooks } from "./create-hooks";
|
|
4
4
|
import type { Managers } from "./create-managers";
|
|
5
5
|
export declare function createPluginInterface(args: {
|
|
6
6
|
ctx: PluginContext;
|
|
7
|
-
pluginConfig:
|
|
7
|
+
pluginConfig: DrizzyAgentConfig;
|
|
8
8
|
firstMessageVariantGate: {
|
|
9
9
|
shouldOverride: (sessionID: string) => boolean;
|
|
10
10
|
markApplied: (sessionID: string) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function resolveAgentVariant(config:
|
|
3
|
-
export declare function resolveVariantForModel(config:
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
|
+
export declare function resolveAgentVariant(config: DrizzyAgentConfig, agentName?: string): string | undefined;
|
|
3
|
+
export declare function resolveVariantForModel(config: DrizzyAgentConfig, agentName: string, currentModel: {
|
|
4
4
|
providerID: string;
|
|
5
5
|
modelID: string;
|
|
6
6
|
}): string | undefined;
|
|
7
|
-
export declare function applyAgentVariant(config:
|
|
7
|
+
export declare function applyAgentVariant(config: DrizzyAgentConfig, agentName: string | undefined, message: {
|
|
8
8
|
variant?: string;
|
|
9
9
|
}): void;
|
|
@@ -19,10 +19,10 @@ export declare function getOpenCodeStorageDir(): string;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function getCacheDir(): string;
|
|
21
21
|
/**
|
|
22
|
-
* Returns the
|
|
23
|
-
* All platforms: ~/.cache/
|
|
22
|
+
* Returns the drizzy-agent cache directory.
|
|
23
|
+
* All platforms: ~/.cache/drizzy-agent
|
|
24
24
|
*/
|
|
25
|
-
export declare function
|
|
25
|
+
export declare function getDrizzyAgentCacheDir(): string;
|
|
26
26
|
/**
|
|
27
27
|
* Returns the OpenCode cache directory (for reading OpenCode's cache).
|
|
28
28
|
* All platforms: ~/.cache/opencode
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Detects external plugins that may conflict with
|
|
2
|
+
* Detects external plugins that may conflict with drizzy-agent features.
|
|
3
3
|
* Used to prevent crashes from concurrent notification plugins.
|
|
4
4
|
*/
|
|
5
5
|
export interface ExternalNotifierResult {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Unified system directive prefix for
|
|
2
|
+
* Unified system directive prefix for drizzy-agent internal messages.
|
|
3
3
|
* All system-generated messages should use this prefix for consistent filtering.
|
|
4
4
|
*
|
|
5
5
|
* Format: [SYSTEM DIRECTIVE: OH-MY-OPENCODE - {TYPE}]
|
|
@@ -12,7 +12,7 @@ export declare const SYSTEM_DIRECTIVE_PREFIX = "[SYSTEM DIRECTIVE: OH-MY-OPENCOD
|
|
|
12
12
|
*/
|
|
13
13
|
export declare function createSystemDirective(type: string): string;
|
|
14
14
|
/**
|
|
15
|
-
* Checks if a message starts with the
|
|
15
|
+
* Checks if a message starts with the drizzy-agent system directive prefix.
|
|
16
16
|
* Used by keyword-detector and other hooks to skip system-generated messages.
|
|
17
17
|
* @param text - The message text to check
|
|
18
18
|
* @returns true if the message is a system directive
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
2
|
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
3
|
-
import type {
|
|
4
|
-
export declare function createTaskCreateTool(config: Partial<
|
|
3
|
+
import type { DrizzyAgentConfig } from "../../config/schema";
|
|
4
|
+
export declare function createTaskCreateTool(config: Partial<DrizzyAgentConfig>, ctx?: PluginInput): ToolDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
2
|
-
import type {
|
|
3
|
-
export declare function createTaskGetTool(config: Partial<
|
|
2
|
+
import type { DrizzyAgentConfig } from "../../config/schema";
|
|
3
|
+
export declare function createTaskGetTool(config: Partial<DrizzyAgentConfig>): ToolDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
2
|
-
import type {
|
|
3
|
-
export declare function createTaskList(config: Partial<
|
|
2
|
+
import type { DrizzyAgentConfig } from "../../config/schema";
|
|
3
|
+
export declare function createTaskList(config: Partial<DrizzyAgentConfig>): ToolDefinition;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
2
|
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
3
|
-
import type {
|
|
4
|
-
export declare function createTaskUpdateTool(config: Partial<
|
|
3
|
+
import type { DrizzyAgentConfig } from "../../config/schema";
|
|
4
|
+
export declare function createTaskUpdateTool(config: Partial<DrizzyAgentConfig>, ctx?: PluginInput): ToolDefinition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drizzy-agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "DrizzyAgent - AI agent plugin for OpenCode",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -76,17 +76,17 @@
|
|
|
76
76
|
"typescript": "^5.7.3"
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
|
-
"drizzy-agent-darwin-arm64": "0.
|
|
80
|
-
"drizzy-agent-darwin-x64": "0.
|
|
81
|
-
"drizzy-agent-darwin-x64-baseline": "0.
|
|
82
|
-
"drizzy-agent-linux-arm64": "0.
|
|
83
|
-
"drizzy-agent-linux-arm64-musl": "0.
|
|
84
|
-
"drizzy-agent-linux-x64": "0.
|
|
85
|
-
"drizzy-agent-linux-x64-baseline": "0.
|
|
86
|
-
"drizzy-agent-linux-x64-musl": "0.
|
|
87
|
-
"drizzy-agent-linux-x64-musl-baseline": "0.
|
|
88
|
-
"drizzy-agent-windows-x64": "0.
|
|
89
|
-
"drizzy-agent-windows-x64-baseline": "0.
|
|
79
|
+
"drizzy-agent-darwin-arm64": "0.3.0",
|
|
80
|
+
"drizzy-agent-darwin-x64": "0.3.0",
|
|
81
|
+
"drizzy-agent-darwin-x64-baseline": "0.3.0",
|
|
82
|
+
"drizzy-agent-linux-arm64": "0.3.0",
|
|
83
|
+
"drizzy-agent-linux-arm64-musl": "0.3.0",
|
|
84
|
+
"drizzy-agent-linux-x64": "0.3.0",
|
|
85
|
+
"drizzy-agent-linux-x64-baseline": "0.3.0",
|
|
86
|
+
"drizzy-agent-linux-x64-musl": "0.3.0",
|
|
87
|
+
"drizzy-agent-linux-x64-musl-baseline": "0.3.0",
|
|
88
|
+
"drizzy-agent-windows-x64": "0.3.0",
|
|
89
|
+
"drizzy-agent-windows-x64-baseline": "0.3.0"
|
|
90
90
|
},
|
|
91
91
|
"overrides": {
|
|
92
92
|
"@opencode-ai/sdk": "^1.2.24"
|