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.
Files changed (61) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +19 -3
  3. package/dist/cli/config-manager/detect-and-remove-oh-my-opencode.d.ts +29 -0
  4. package/dist/cli/config-manager/detect-current-config.d.ts +13 -1
  5. package/dist/cli/config-manager/oh-my-opencode-paths.d.ts +6 -0
  6. package/dist/cli/config-manager.d.ts +2 -0
  7. package/dist/cli/index.js +10891 -10927
  8. package/dist/cli/run/agent-resolver.d.ts +2 -2
  9. package/dist/cli/tui-install-prompts.d.ts +2 -1
  10. package/dist/cli/types.d.ts +6 -0
  11. package/dist/config/index.d.ts +2 -2
  12. package/dist/config/schema/{oh-my-opencode-config.d.ts → drizzy-agent-config.d.ts} +2 -2
  13. package/dist/config/schema.d.ts +1 -1
  14. package/dist/create-hooks.d.ts +2 -2
  15. package/dist/create-managers.d.ts +2 -2
  16. package/dist/create-tools.d.ts +2 -2
  17. package/dist/features/claude-code-plugin-loader/types.d.ts +1 -1
  18. package/dist/features/claude-tasks/session-storage.d.ts +5 -5
  19. package/dist/features/claude-tasks/storage.d.ts +4 -4
  20. package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +2 -2
  21. package/dist/hooks/anthropic-context-window-limit-recovery/recovery-hook.d.ts +2 -2
  22. package/dist/hooks/anthropic-context-window-limit-recovery/summarize-retry-strategy.d.ts +2 -2
  23. package/dist/hooks/auto-update-checker/constants.d.ts +2 -2
  24. package/dist/hooks/comment-checker/downloader.d.ts +1 -1
  25. package/dist/hooks/preemptive-compaction.d.ts +2 -2
  26. package/dist/hooks/runtime-fallback/fallback-models.d.ts +2 -2
  27. package/dist/hooks/runtime-fallback/types.d.ts +3 -3
  28. package/dist/hooks/shared/compaction-model-resolver.d.ts +2 -2
  29. package/dist/index.d.ts +3 -3
  30. package/dist/index.js +336 -338
  31. package/dist/mcp/index.d.ts +2 -2
  32. package/dist/plugin/available-categories.d.ts +2 -2
  33. package/dist/plugin/chat-message.d.ts +2 -2
  34. package/dist/plugin/event.d.ts +2 -2
  35. package/dist/plugin/hooks/create-continuation-hooks.d.ts +2 -2
  36. package/dist/plugin/hooks/create-core-hooks.d.ts +2 -2
  37. package/dist/plugin/hooks/create-session-hooks.d.ts +2 -2
  38. package/dist/plugin/hooks/create-skill-hooks.d.ts +2 -2
  39. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -2
  40. package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -2
  41. package/dist/plugin/skill-context.d.ts +2 -2
  42. package/dist/plugin/tool-registry.d.ts +2 -2
  43. package/dist/plugin/ultrawork-model-override.d.ts +3 -3
  44. package/dist/plugin/unstable-agent-babysitter.d.ts +2 -2
  45. package/dist/plugin-config.d.ts +5 -5
  46. package/dist/plugin-handlers/agent-config-handler.d.ts +2 -2
  47. package/dist/plugin-handlers/command-config-handler.d.ts +2 -2
  48. package/dist/plugin-handlers/config-handler.d.ts +2 -2
  49. package/dist/plugin-handlers/mcp-config-handler.d.ts +2 -2
  50. package/dist/plugin-handlers/plugin-components-loader.d.ts +2 -2
  51. package/dist/plugin-handlers/tool-config-handler.d.ts +2 -2
  52. package/dist/plugin-interface.d.ts +2 -2
  53. package/dist/shared/agent-variant.d.ts +4 -4
  54. package/dist/shared/data-path.d.ts +3 -3
  55. package/dist/shared/external-plugin-detector.d.ts +1 -1
  56. package/dist/shared/system-directive.d.ts +2 -2
  57. package/dist/tools/task/task-create.d.ts +2 -2
  58. package/dist/tools/task/task-get.d.ts +2 -2
  59. package/dist/tools/task/task-list.d.ts +2 -2
  60. package/dist/tools/task/task-update.d.ts +2 -2
  61. package/package.json +12 -12
@@ -1,5 +1,5 @@
1
1
  import type { RunOptions } from "./types";
2
- import type { OhMyOpenCodeConfig } from "../../config";
2
+ import type { DrizzyAgentConfig } from "../../config";
3
3
  type EnvVars = Record<string, string | undefined>;
4
- export declare const resolveRunAgent: (options: RunOptions, pluginConfig: OhMyOpenCodeConfig, env?: EnvVars) => string;
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>;
@@ -37,3 +37,9 @@ export interface DetectedConfig {
37
37
  hasZaiCodingPlan: boolean;
38
38
  hasKimiForCoding: boolean;
39
39
  }
40
+ export interface OmoDetectionResult {
41
+ isInstalled: boolean;
42
+ configPath?: string;
43
+ pluginEntry?: string;
44
+ openCodeConfigPath?: string;
45
+ }
@@ -1,2 +1,2 @@
1
- export { OhMyOpenCodeConfigSchema, } from "./schema";
2
- export type { OhMyOpenCodeConfig, AgentOverrideConfig, AgentOverrides, McpName, AgentName, HookName, BuiltinCommandName, CoderAgentConfig, ExperimentalConfig, DynamicContextPruningConfig, RalphLoopConfig, TmuxConfig, TmuxLayout, CoderConfig, CoderTasksConfig, RuntimeFallbackConfig, FallbackModels, } from "./schema";
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 OhMyOpenCodeConfigSchema: z.ZodObject<{
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 OhMyOpenCodeConfig = z.infer<typeof OhMyOpenCodeConfigSchema>;
1444
+ export type DrizzyAgentConfig = z.infer<typeof DrizzyAgentConfigSchema>;
@@ -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/oh-my-opencode-config";
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";
@@ -1,5 +1,5 @@
1
1
  import type { AvailableSkill } from "./agents/dynamic-agent-prompt-builder";
2
- import type { HookName, OhMyOpenCodeConfig } from "./config";
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: OhMyOpenCodeConfig;
19
+ pluginConfig: DrizzyAgentConfig;
20
20
  modelCacheState: ModelCacheState;
21
21
  backgroundManager: BackgroundManager;
22
22
  isHookEnabled: (hookName: HookName) => boolean;
@@ -1,4 +1,4 @@
1
- import type { OhMyOpenCodeConfig } from "./config";
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: OhMyOpenCodeConfig;
16
+ pluginConfig: DrizzyAgentConfig;
17
17
  tmuxConfig: TmuxConfig;
18
18
  modelCacheState: ModelCacheState;
19
19
  backgroundNotificationHookEnabled: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { AvailableCategory, AvailableSkill } from "./agents/dynamic-agent-prompt-builder";
2
- import type { OhMyOpenCodeConfig } from "./config";
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: OhMyOpenCodeConfig;
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 oh-my-opencode config.
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 { OhMyOpenCodeConfig } from "../../config/schema";
2
- export declare function getSessionTaskDir(config: Partial<OhMyOpenCodeConfig>, sessionID: string): string;
3
- export declare function listSessionTaskFiles(config: Partial<OhMyOpenCodeConfig>, sessionID: string): string[];
4
- export declare function listAllSessionDirs(config: Partial<OhMyOpenCodeConfig>): string[];
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<OhMyOpenCodeConfig>, taskId: string): TaskLocation | null;
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 { OhMyOpenCodeConfig } from "../../config/schema";
3
- export declare function getTaskDir(config?: Partial<OhMyOpenCodeConfig>): string;
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<OhMyOpenCodeConfig>): string;
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<OhMyOpenCodeConfig>): string[];
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 { OhMyOpenCodeConfig } from "../../config";
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: OhMyOpenCodeConfig, _experimental?: ExperimentalConfig): Promise<void>;
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, OhMyOpenCodeConfig } from "../../config";
2
+ import type { ExperimentalConfig, DrizzyAgentConfig } from "../../config";
3
3
  export interface AnthropicContextWindowLimitRecoveryOptions {
4
4
  experimental?: ExperimentalConfig;
5
- pluginConfig: OhMyOpenCodeConfig;
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 { OhMyOpenCodeConfig } from "../../config";
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: OhMyOpenCodeConfig;
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 = "oh-my-opencode";
2
- export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org/-/package/oh-my-opencode/dist-tags";
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,5 +1,5 @@
1
1
  /**
2
- * Get the cache directory for oh-my-opencode binaries.
2
+ * Get the cache directory for drizzy-agent binaries.
3
3
  * On Windows: Uses %LOCALAPPDATA% or %APPDATA% (Windows conventions)
4
4
  * On Unix: Follows XDG Base Directory Specification
5
5
  */
@@ -1,4 +1,4 @@
1
- import type { OhMyOpenCodeConfig } from "../config";
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: OhMyOpenCodeConfig, modelCacheState?: ModelCacheStateLike): {
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 { OhMyOpenCodeConfig } from "../../config";
2
- export declare function getFallbackModelsForSession(sessionID: string, agent: string | undefined, pluginConfig: OhMyOpenCodeConfig | undefined): string[];
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, OhMyOpenCodeConfig } from "../../config";
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?: OhMyOpenCodeConfig;
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: OhMyOpenCodeConfig | undefined;
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 { OhMyOpenCodeConfig } from "../../config";
2
- export declare function resolveCompactionModel(pluginConfig: OhMyOpenCodeConfig, sessionID: string, originalProviderID: string, originalModelID: string): {
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 OhMyOpenCodePlugin: Plugin;
3
- export default OhMyOpenCodePlugin;
4
- export type { OhMyOpenCodeConfig, AgentName, AgentOverrideConfig, AgentOverrides, McpName, HookName, BuiltinCommandName, } from "./config";
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";