drizzy-agent 0.2.1 → 0.3.1
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 +10891 -10927
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RunOptions } from "./types";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DrizzyAgentConfig } from "../../config";
|
|
3
3
|
type EnvVars = Record<string, string | undefined>;
|
|
4
|
-
export declare const resolveRunAgent: (options: RunOptions, pluginConfig:
|
|
4
|
+
export declare const resolveRunAgent: (options: RunOptions, pluginConfig: DrizzyAgentConfig, env?: EnvVars) => string;
|
|
5
5
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type { DetectedConfig, InstallConfig } from "./types";
|
|
1
|
+
import type { DetectedConfig, InstallConfig, OmoDetectionResult } from "./types";
|
|
2
2
|
export declare function promptInstallConfig(detected: DetectedConfig): Promise<InstallConfig | null>;
|
|
3
|
+
export declare function promptOhMyOpencodeConfirmation(detected: OmoDetectionResult): Promise<boolean>;
|
package/dist/cli/types.d.ts
CHANGED
package/dist/config/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
1
|
+
export { DrizzyAgentConfigSchema, } from "./schema";
|
|
2
|
+
export type { DrizzyAgentConfig, AgentOverrideConfig, AgentOverrides, McpName, AgentName, HookName, BuiltinCommandName, CoderAgentConfig, ExperimentalConfig, DynamicContextPruningConfig, RalphLoopConfig, TmuxConfig, TmuxLayout, CoderConfig, CoderTasksConfig, RuntimeFallbackConfig, FallbackModels, } from "./schema";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const DrizzyAgentConfigSchema: z.ZodObject<{
|
|
3
3
|
$schema: z.ZodOptional<z.ZodString>;
|
|
4
4
|
new_task_system_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
default_run_agent: z.ZodOptional<z.ZodString>;
|
|
@@ -1441,4 +1441,4 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1441
1441
|
}, z.core.$strip>>;
|
|
1442
1442
|
_migrations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1443
1443
|
}, z.core.$strip>;
|
|
1444
|
-
export type
|
|
1444
|
+
export type DrizzyAgentConfig = z.infer<typeof DrizzyAgentConfigSchema>;
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export * from "./schema/git-env-prefix";
|
|
|
14
14
|
export * from "./schema/git-master";
|
|
15
15
|
export * from "./schema/hooks";
|
|
16
16
|
export * from "./schema/notification";
|
|
17
|
-
export * from "./schema/
|
|
17
|
+
export * from "./schema/drizzy-agent-config";
|
|
18
18
|
export * from "./schema/ralph-loop";
|
|
19
19
|
export * from "./schema/runtime-fallback";
|
|
20
20
|
export * from "./schema/skills";
|
package/dist/create-hooks.d.ts
CHANGED
|
@@ -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 { BackgroundManager } from "./features/background-agent";
|
|
5
5
|
import type { PluginContext } from "./plugin/types";
|
|
@@ -16,7 +16,7 @@ export type DisposableCreatedHooks = {
|
|
|
16
16
|
export declare function disposeCreatedHooks(hooks: DisposableCreatedHooks): void;
|
|
17
17
|
export declare function createHooks(args: {
|
|
18
18
|
ctx: PluginContext;
|
|
19
|
-
pluginConfig:
|
|
19
|
+
pluginConfig: DrizzyAgentConfig;
|
|
20
20
|
modelCacheState: ModelCacheState;
|
|
21
21
|
backgroundManager: BackgroundManager;
|
|
22
22
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "./config";
|
|
2
2
|
import type { ModelCacheState } from "./plugin-state";
|
|
3
3
|
import type { PluginContext, TmuxConfig } from "./plugin/types";
|
|
4
4
|
import { BackgroundManager } from "./features/background-agent";
|
|
@@ -13,7 +13,7 @@ export type Managers = {
|
|
|
13
13
|
};
|
|
14
14
|
export declare function createManagers(args: {
|
|
15
15
|
ctx: PluginContext;
|
|
16
|
-
pluginConfig:
|
|
16
|
+
pluginConfig: DrizzyAgentConfig;
|
|
17
17
|
tmuxConfig: TmuxConfig;
|
|
18
18
|
modelCacheState: ModelCacheState;
|
|
19
19
|
backgroundNotificationHookEnabled: boolean;
|
package/dist/create-tools.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AvailableCategory, 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
|
import type { PluginContext, ToolsRecord } from "./plugin/types";
|
|
@@ -15,6 +15,6 @@ export type CreateToolsResult = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare function createTools(args: {
|
|
17
17
|
ctx: PluginContext;
|
|
18
|
-
pluginConfig:
|
|
18
|
+
pluginConfig: DrizzyAgentConfig;
|
|
19
19
|
managers: Pick<Managers, "backgroundManager" | "tmuxSessionManager" | "skillMcpManager">;
|
|
20
20
|
}): Promise<CreateToolsResult>;
|
|
@@ -186,7 +186,7 @@ export interface ClaudeSettings {
|
|
|
186
186
|
*/
|
|
187
187
|
export interface PluginLoaderOptions {
|
|
188
188
|
/**
|
|
189
|
-
* Override enabled plugins from
|
|
189
|
+
* Override enabled plugins from drizzy-agent config.
|
|
190
190
|
* Key format: "pluginName@marketplace" (e.g., "shell-scripting@claude-code-workflows")
|
|
191
191
|
* Value: true = enabled, false = disabled
|
|
192
192
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function getSessionTaskDir(config: Partial<
|
|
3
|
-
export declare function listSessionTaskFiles(config: Partial<
|
|
4
|
-
export declare function listAllSessionDirs(config: Partial<
|
|
1
|
+
import type { DrizzyAgentConfig } from "../../config/schema";
|
|
2
|
+
export declare function getSessionTaskDir(config: Partial<DrizzyAgentConfig>, sessionID: string): string;
|
|
3
|
+
export declare function listSessionTaskFiles(config: Partial<DrizzyAgentConfig>, sessionID: string): string[];
|
|
4
|
+
export declare function listAllSessionDirs(config: Partial<DrizzyAgentConfig>): string[];
|
|
5
5
|
export interface TaskLocation {
|
|
6
6
|
path: string;
|
|
7
7
|
sessionID: string;
|
|
8
8
|
}
|
|
9
|
-
export declare function findTaskAcrossSessions(config: Partial<
|
|
9
|
+
export declare function findTaskAcrossSessions(config: Partial<DrizzyAgentConfig>, taskId: string): TaskLocation | null;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { z } from "zod";
|
|
2
|
-
import type {
|
|
3
|
-
export declare function getTaskDir(config?: Partial<
|
|
2
|
+
import type { DrizzyAgentConfig } from "../../config/schema";
|
|
3
|
+
export declare function getTaskDir(config?: Partial<DrizzyAgentConfig>): string;
|
|
4
4
|
export declare function sanitizePathSegment(value: string): string;
|
|
5
|
-
export declare function resolveTaskListId(config?: Partial<
|
|
5
|
+
export declare function resolveTaskListId(config?: Partial<DrizzyAgentConfig>): string;
|
|
6
6
|
export declare function ensureDir(dirPath: string): void;
|
|
7
7
|
export declare function readJsonSafe<T>(filePath: string, schema: z.ZodType<T>): T | null;
|
|
8
8
|
export declare function writeJsonAtomic(filePath: string, data: unknown): void;
|
|
9
9
|
export declare function generateTaskId(): string;
|
|
10
|
-
export declare function listTaskFiles(config?: Partial<
|
|
10
|
+
export declare function listTaskFiles(config?: Partial<DrizzyAgentConfig>): string[];
|
|
11
11
|
export declare function acquireLock(dirPath: string): {
|
|
12
12
|
acquired: boolean;
|
|
13
13
|
release: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AutoCompactState } from "./types";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DrizzyAgentConfig } from "../../config";
|
|
3
3
|
import type { ExperimentalConfig } from "../../config";
|
|
4
4
|
import type { Client } from "./client";
|
|
5
5
|
export { getLastAssistant } from "./message-builder";
|
|
6
|
-
export declare function executeCompact(sessionID: string, msg: Record<string, unknown>, autoCompactState: AutoCompactState, client: Client, directory: string, pluginConfig:
|
|
6
|
+
export declare function executeCompact(sessionID: string, msg: Record<string, unknown>, autoCompactState: AutoCompactState, client: Client, directory: string, pluginConfig: DrizzyAgentConfig, _experimental?: ExperimentalConfig): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { ExperimentalConfig,
|
|
2
|
+
import type { ExperimentalConfig, DrizzyAgentConfig } from "../../config";
|
|
3
3
|
export interface AnthropicContextWindowLimitRecoveryOptions {
|
|
4
4
|
experimental?: ExperimentalConfig;
|
|
5
|
-
pluginConfig:
|
|
5
|
+
pluginConfig: DrizzyAgentConfig;
|
|
6
6
|
}
|
|
7
7
|
export declare function createAnthropicContextWindowLimitRecoveryHook(ctx: PluginInput, options?: AnthropicContextWindowLimitRecoveryOptions): {
|
|
8
8
|
event: ({ event }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AutoCompactState } from "./types";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DrizzyAgentConfig } from "../../config";
|
|
3
3
|
import type { Client } from "./client";
|
|
4
4
|
export declare function runSummarizeRetryStrategy(params: {
|
|
5
5
|
sessionID: string;
|
|
@@ -7,7 +7,7 @@ export declare function runSummarizeRetryStrategy(params: {
|
|
|
7
7
|
autoCompactState: AutoCompactState;
|
|
8
8
|
client: Client;
|
|
9
9
|
directory: string;
|
|
10
|
-
pluginConfig:
|
|
10
|
+
pluginConfig: DrizzyAgentConfig;
|
|
11
11
|
errorType?: string;
|
|
12
12
|
messageIndex?: number;
|
|
13
13
|
}): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const PACKAGE_NAME = "
|
|
2
|
-
export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org/-/package/
|
|
1
|
+
export declare const PACKAGE_NAME = "drizzy-agent";
|
|
2
|
+
export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org/-/package/drizzy-agent/dist-tags";
|
|
3
3
|
export declare const NPM_FETCH_TIMEOUT = 5000;
|
|
4
4
|
export declare const CACHE_DIR: string;
|
|
5
5
|
export declare const VERSION_FILE: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DrizzyAgentConfig } from "../config";
|
|
2
2
|
type ModelCacheStateLike = {
|
|
3
3
|
anthropicContext1MEnabled: boolean;
|
|
4
4
|
modelContextLimitsCache?: Map<string, number>;
|
|
@@ -15,7 +15,7 @@ type PluginInput = {
|
|
|
15
15
|
};
|
|
16
16
|
directory: string;
|
|
17
17
|
};
|
|
18
|
-
export declare function createPreemptiveCompactionHook(ctx: PluginInput, pluginConfig:
|
|
18
|
+
export declare function createPreemptiveCompactionHook(ctx: PluginInput, pluginConfig: DrizzyAgentConfig, modelCacheState?: ModelCacheStateLike): {
|
|
19
19
|
"tool.execute.after": (input: {
|
|
20
20
|
tool: string;
|
|
21
21
|
sessionID: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function getFallbackModelsForSession(sessionID: string, agent: string | undefined, pluginConfig:
|
|
1
|
+
import type { DrizzyAgentConfig } from "../../config";
|
|
2
|
+
export declare function getFallbackModelsForSession(sessionID: string, agent: string | undefined, pluginConfig: DrizzyAgentConfig | undefined): string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RuntimeFallbackConfig,
|
|
1
|
+
import type { RuntimeFallbackConfig, DrizzyAgentConfig } from "../../config";
|
|
2
2
|
export interface RuntimeFallbackInterval {
|
|
3
3
|
unref: () => void;
|
|
4
4
|
}
|
|
@@ -68,7 +68,7 @@ export interface FallbackResult {
|
|
|
68
68
|
}
|
|
69
69
|
export interface RuntimeFallbackOptions {
|
|
70
70
|
config?: RuntimeFallbackConfig;
|
|
71
|
-
pluginConfig?:
|
|
71
|
+
pluginConfig?: DrizzyAgentConfig;
|
|
72
72
|
session_timeout_ms?: number;
|
|
73
73
|
}
|
|
74
74
|
export interface RuntimeFallbackHook {
|
|
@@ -103,7 +103,7 @@ export interface HookDeps {
|
|
|
103
103
|
ctx: RuntimeFallbackPluginInput;
|
|
104
104
|
config: Required<RuntimeFallbackConfig>;
|
|
105
105
|
options: RuntimeFallbackOptions | undefined;
|
|
106
|
-
pluginConfig:
|
|
106
|
+
pluginConfig: DrizzyAgentConfig | undefined;
|
|
107
107
|
sessionStates: Map<string, FallbackState>;
|
|
108
108
|
sessionLastAccess: Map<string, number>;
|
|
109
109
|
sessionRetryInFlight: Set<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function resolveCompactionModel(pluginConfig:
|
|
1
|
+
import type { DrizzyAgentConfig } from "../../config";
|
|
2
|
+
export declare function resolveCompactionModel(pluginConfig: DrizzyAgentConfig, sessionID: string, originalProviderID: string, originalModelID: string): {
|
|
3
3
|
providerID: string;
|
|
4
4
|
modelID: string;
|
|
5
5
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Plugin } from "@opencode-ai/plugin";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
4
|
-
export type {
|
|
2
|
+
declare const DrizzyAgentPlugin: Plugin;
|
|
3
|
+
export default DrizzyAgentPlugin;
|
|
4
|
+
export type { DrizzyAgentConfig, AgentName, AgentOverrideConfig, AgentOverrides, McpName, HookName, BuiltinCommandName, } from "./config";
|
|
5
5
|
export type { ConfigLoadError } from "./shared/config-errors";
|