drizzy-agent 0.1.3 → 0.2.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.
@@ -12,7 +12,7 @@ describe("getPlatformPackage", () => {
12
12
  const result = getPlatformPackage(input);
13
13
 
14
14
  // #then returns correct package name
15
- expect(result).toBe("oh-my-opencode-darwin-arm64");
15
+ expect(result).toBe("drizzy-agent-darwin-arm64");
16
16
  });
17
17
 
18
18
  test("returns darwin-x64 for macOS Intel", () => {
@@ -23,7 +23,7 @@ describe("getPlatformPackage", () => {
23
23
  const result = getPlatformPackage(input);
24
24
 
25
25
  // #then returns correct package name
26
- expect(result).toBe("oh-my-opencode-darwin-x64");
26
+ expect(result).toBe("drizzy-agent-darwin-x64");
27
27
  });
28
28
  // #endregion
29
29
 
@@ -36,7 +36,7 @@ describe("getPlatformPackage", () => {
36
36
  const result = getPlatformPackage(input);
37
37
 
38
38
  // #then returns correct package name
39
- expect(result).toBe("oh-my-opencode-linux-x64");
39
+ expect(result).toBe("drizzy-agent-linux-x64");
40
40
  });
41
41
 
42
42
  test("returns linux-arm64 for Linux ARM64 with glibc", () => {
@@ -47,7 +47,7 @@ describe("getPlatformPackage", () => {
47
47
  const result = getPlatformPackage(input);
48
48
 
49
49
  // #then returns correct package name
50
- expect(result).toBe("oh-my-opencode-linux-arm64");
50
+ expect(result).toBe("drizzy-agent-linux-arm64");
51
51
  });
52
52
  // #endregion
53
53
 
@@ -60,7 +60,7 @@ describe("getPlatformPackage", () => {
60
60
  const result = getPlatformPackage(input);
61
61
 
62
62
  // #then returns correct package name with musl suffix
63
- expect(result).toBe("oh-my-opencode-linux-x64-musl");
63
+ expect(result).toBe("drizzy-agent-linux-x64-musl");
64
64
  });
65
65
 
66
66
  test("returns linux-arm64-musl for Alpine ARM64", () => {
@@ -71,7 +71,7 @@ describe("getPlatformPackage", () => {
71
71
  const result = getPlatformPackage(input);
72
72
 
73
73
  // #then returns correct package name with musl suffix
74
- expect(result).toBe("oh-my-opencode-linux-arm64-musl");
74
+ expect(result).toBe("drizzy-agent-linux-arm64-musl");
75
75
  });
76
76
  // #endregion
77
77
 
@@ -84,7 +84,7 @@ describe("getPlatformPackage", () => {
84
84
  const result = getPlatformPackage(input);
85
85
 
86
86
  // #then returns correct package name with 'windows' not 'win32'
87
- expect(result).toBe("oh-my-opencode-windows-x64");
87
+ expect(result).toBe("drizzy-agent-windows-x64");
88
88
  });
89
89
  // #endregion
90
90
 
@@ -112,38 +112,38 @@ describe("getPlatformPackage", () => {
112
112
  describe("getBinaryPath", () => {
113
113
  test("returns path without .exe for Unix platforms", () => {
114
114
  // #given Unix platform package
115
- const pkg = "oh-my-opencode-darwin-arm64";
115
+ const pkg = "drizzy-agent-darwin-arm64";
116
116
  const platform = "darwin";
117
117
 
118
118
  // #when getting binary path
119
119
  const result = getBinaryPath(pkg, platform);
120
120
 
121
121
  // #then returns path without extension
122
- expect(result).toBe("oh-my-opencode-darwin-arm64/bin/oh-my-opencode");
122
+ expect(result).toBe("drizzy-agent-darwin-arm64/bin/drizzy-agent");
123
123
  });
124
124
 
125
125
  test("returns path with .exe for Windows", () => {
126
126
  // #given Windows platform package
127
- const pkg = "oh-my-opencode-windows-x64";
127
+ const pkg = "drizzy-agent-windows-x64";
128
128
  const platform = "win32";
129
129
 
130
130
  // #when getting binary path
131
131
  const result = getBinaryPath(pkg, platform);
132
132
 
133
133
  // #then returns path with .exe extension
134
- expect(result).toBe("oh-my-opencode-windows-x64/bin/oh-my-opencode.exe");
134
+ expect(result).toBe("drizzy-agent-windows-x64/bin/drizzy-agent.exe");
135
135
  });
136
136
 
137
137
  test("returns path without .exe for Linux", () => {
138
138
  // #given Linux platform package
139
- const pkg = "oh-my-opencode-linux-x64";
139
+ const pkg = "drizzy-agent-linux-x64";
140
140
  const platform = "linux";
141
141
 
142
142
  // #when getting binary path
143
143
  const result = getBinaryPath(pkg, platform);
144
144
 
145
145
  // #then returns path without extension
146
- expect(result).toBe("oh-my-opencode-linux-x64/bin/oh-my-opencode");
146
+ expect(result).toBe("drizzy-agent-linux-x64/bin/drizzy-agent");
147
147
  });
148
148
  });
149
149
 
@@ -157,8 +157,8 @@ describe("getPlatformPackageCandidates", () => {
157
157
 
158
158
  // #then returns modern first then baseline fallback
159
159
  expect(result).toEqual([
160
- "oh-my-opencode-linux-x64",
161
- "oh-my-opencode-linux-x64-baseline",
160
+ "drizzy-agent-linux-x64",
161
+ "drizzy-agent-linux-x64-baseline",
162
162
  ]);
163
163
  });
164
164
 
@@ -171,8 +171,8 @@ describe("getPlatformPackageCandidates", () => {
171
171
 
172
172
  // #then returns musl modern first then musl baseline fallback
173
173
  expect(result).toEqual([
174
- "oh-my-opencode-linux-x64-musl",
175
- "oh-my-opencode-linux-x64-musl-baseline",
174
+ "drizzy-agent-linux-x64-musl",
175
+ "drizzy-agent-linux-x64-musl-baseline",
176
176
  ]);
177
177
  });
178
178
 
@@ -185,8 +185,8 @@ describe("getPlatformPackageCandidates", () => {
185
185
 
186
186
  // #then baseline package is preferred first
187
187
  expect(result).toEqual([
188
- "oh-my-opencode-windows-x64-baseline",
189
- "oh-my-opencode-windows-x64",
188
+ "drizzy-agent-windows-x64-baseline",
189
+ "drizzy-agent-windows-x64",
190
190
  ]);
191
191
  });
192
192
 
@@ -198,6 +198,6 @@ describe("getPlatformPackageCandidates", () => {
198
198
  const result = getPlatformPackageCandidates(input);
199
199
 
200
200
  // #then baseline fallback is not included
201
- expect(result).toEqual(["oh-my-opencode-linux-arm64"]);
201
+ expect(result).toEqual(["drizzy-agent-linux-arm64"]);
202
202
  });
203
203
  });
package/dist/cli/index.js CHANGED
@@ -5960,6 +5960,7 @@ var init_agent_names = __esm(() => {
5960
5960
  coder: "coder",
5961
5961
  GPTCoder: "gptcoder",
5962
5962
  gptcoder: "gptcoder",
5963
+ hephaestus: "gptcoder",
5963
5964
  Planner: "planner",
5964
5965
  planner: "planner",
5965
5966
  "Prometheus (Planner)": "planner",
@@ -6107,7 +6108,7 @@ function migrateConfigFile(configPath, rawConfig) {
6107
6108
  needsWrite = true;
6108
6109
  }
6109
6110
  if (copy.omo_agent) {
6110
- copy.drizzy_agent = copy.omo_agent;
6111
+ copy.coder_agent = copy.omo_agent;
6111
6112
  delete copy.omo_agent;
6112
6113
  needsWrite = true;
6113
6114
  }
@@ -9082,7 +9083,7 @@ var {
9082
9083
  // package.json
9083
9084
  var package_default = {
9084
9085
  name: "drizzy-agent",
9085
- version: "0.1.3",
9086
+ version: "0.2.0",
9086
9087
  description: "DrizzyAgent - AI agent plugin for OpenCode",
9087
9088
  main: "dist/index.js",
9088
9089
  types: "dist/index.d.ts",
@@ -9158,17 +9159,17 @@ var package_default = {
9158
9159
  typescript: "^5.7.3"
9159
9160
  },
9160
9161
  optionalDependencies: {
9161
- "drizzy-agent-darwin-arm64": "0.1.3",
9162
- "drizzy-agent-darwin-x64": "0.1.3",
9163
- "drizzy-agent-darwin-x64-baseline": "0.1.3",
9164
- "drizzy-agent-linux-arm64": "0.1.3",
9165
- "drizzy-agent-linux-arm64-musl": "0.1.3",
9166
- "drizzy-agent-linux-x64": "0.1.3",
9167
- "drizzy-agent-linux-x64-baseline": "0.1.3",
9168
- "drizzy-agent-linux-x64-musl": "0.1.3",
9169
- "drizzy-agent-linux-x64-musl-baseline": "0.1.3",
9170
- "drizzy-agent-windows-x64": "0.1.3",
9171
- "drizzy-agent-windows-x64-baseline": "0.1.3"
9162
+ "drizzy-agent-darwin-arm64": "0.2.0",
9163
+ "drizzy-agent-darwin-x64": "0.2.0",
9164
+ "drizzy-agent-darwin-x64-baseline": "0.2.0",
9165
+ "drizzy-agent-linux-arm64": "0.2.0",
9166
+ "drizzy-agent-linux-arm64-musl": "0.2.0",
9167
+ "drizzy-agent-linux-x64": "0.2.0",
9168
+ "drizzy-agent-linux-x64-baseline": "0.2.0",
9169
+ "drizzy-agent-linux-x64-musl": "0.2.0",
9170
+ "drizzy-agent-linux-x64-musl-baseline": "0.2.0",
9171
+ "drizzy-agent-windows-x64": "0.2.0",
9172
+ "drizzy-agent-windows-x64-baseline": "0.2.0"
9172
9173
  },
9173
9174
  overrides: {
9174
9175
  "@opencode-ai/sdk": "^1.2.24"
@@ -9196,12 +9197,12 @@ var SYMBOLS = {
9196
9197
  star: import_picocolors.default.yellow("*")
9197
9198
  };
9198
9199
  var DRIZZY_AGENT_BANNER = [
9199
- "____ _ _ _ _ ",
9200
- "| _ \\ _ __(_)________ _ / \\ __ _| |__ _ __ | |_ ",
9201
- "| | | | '__| |_ /_ /| | | |/ _` | '_ \\| '_ \\| __|",
9202
- "| |_| | | | |/ / / / | |_| | (_| | |_) | | | | |_ ",
9203
- "|____/|_| |_/___/___| \\__, |\\__,_|_.__/|_| |_|\\__|",
9204
- " |___/ "
9200
+ " ____ _ ___ __ ",
9201
+ " / __ \\_____(_)_______ __ __/ | ____ ____ ____ / /_",
9202
+ " / / / / ___/ /_ /_ / / / / / /| |/ __ `/ _ \\/ __ \\/ __/",
9203
+ "/ /_/ / / / / / /_/ /_/ /_/ / ___ / /_/ / __/ / / / /_ ",
9204
+ "/_____/_/ /_/ /___/___/\\__, /_/ |_\\__, /\\___/_/ /_/\\__/ ",
9205
+ " /____/ /____/ "
9205
9206
  ].join(`
9206
9207
  `);
9207
9208
  function formatBanner(mode) {
package/dist/index.js CHANGED
@@ -4828,7 +4828,7 @@ function isPlanAgent(agentName) {
4828
4828
  if (!agentName)
4829
4829
  return false;
4830
4830
  const lowerName = agentName.toLowerCase().trim();
4831
- return PLAN_AGENT_NAMES.some((name) => lowerName === name || lowerName.includes(name));
4831
+ return PLAN_AGENT_NAMES.some((name) => lowerName === name);
4832
4832
  }
4833
4833
  function isPlanFamily(category) {
4834
4834
  if (!category)
@@ -16493,6 +16493,7 @@ var AGENT_NAME_MAP = {
16493
16493
  coder: "coder",
16494
16494
  GPTCoder: "gptcoder",
16495
16495
  gptcoder: "gptcoder",
16496
+ hephaestus: "gptcoder",
16496
16497
  Planner: "planner",
16497
16498
  planner: "planner",
16498
16499
  "Prometheus (Planner)": "planner",
@@ -16640,7 +16641,7 @@ function migrateConfigFile(configPath, rawConfig) {
16640
16641
  needsWrite = true;
16641
16642
  }
16642
16643
  if (copy.omo_agent) {
16643
- copy.drizzy_agent = copy.omo_agent;
16644
+ copy.coder_agent = copy.omo_agent;
16644
16645
  delete copy.omo_agent;
16645
16646
  needsWrite = true;
16646
16647
  }
@@ -18412,8 +18413,12 @@ var SESSION_MISSING_GRACE_MS = 6000;
18412
18413
  var SESSION_READY_POLL_INTERVAL_MS = 500;
18413
18414
  var SESSION_READY_TIMEOUT_MS = 1e4;
18414
18415
  // src/shared/tmux/tmux-utils/environment.ts
18416
+ function isInsideTmuxWithEnv(env) {
18417
+ const tmux = env.TMUX;
18418
+ return typeof tmux === "string" && tmux.length > 0;
18419
+ }
18415
18420
  function isInsideTmux() {
18416
- return Boolean(process.env.TMUX);
18421
+ return isInsideTmuxWithEnv(process.env);
18417
18422
  }
18418
18423
  function getCurrentPaneId() {
18419
18424
  return process.env.TMUX_PANE;
@@ -48876,13 +48881,15 @@ var OhMyOpenCodeConfigSchema = exports_external.object({
48876
48881
  var BASH_CODE_BLOCK_PATTERN = /```bash\r?\n([\s\S]*?)```/g;
48877
48882
  var LEADING_GIT_COMMAND_PATTERN = /^([ \t]*(?:[A-Za-z_][A-Za-z0-9_]*=[^ \t]+\s+)*)git(?=[ \t]|$)/gm;
48878
48883
  var INLINE_GIT_COMMAND_PATTERN = /([;&|()][ \t]*)git(?=[ \t]|$)/g;
48884
+ var DEFAULT_COMMIT_FOOTER = "Developed with [DrizzyAgent](https://github.com/AndreDalwin/DrizzyAgent)";
48885
+ var DEFAULT_CO_AUTHORED_BY = "Co-authored-by: DrizzyBot <263155900+DrizzyBot@users.noreply.github.com>";
48879
48886
  function injectGitMasterConfig(template, config2) {
48880
48887
  const commitFooter = config2?.commit_footer ?? true;
48881
48888
  const includeCoAuthoredBy = config2?.include_co_authored_by ?? true;
48882
48889
  const gitEnvPrefix = assertValidGitEnvPrefix(config2?.git_env_prefix ?? "GIT_MASTER=1");
48883
48890
  let result = gitEnvPrefix ? injectGitEnvPrefix(template, gitEnvPrefix) : template;
48884
48891
  if (commitFooter || includeCoAuthoredBy) {
48885
- const injection = buildCommitFooterInjection(commitFooter, includeCoAuthoredBy, gitEnvPrefix);
48892
+ const injection = buildCommitFooterInjection(commitFooter, includeCoAuthoredBy);
48886
48893
  const insertionPoint = result.indexOf("```\n</execution>");
48887
48894
  result = insertionPoint !== -1 ? result.slice(0, insertionPoint) + "```\n\n" + injection + `
48888
48895
  </execution>` + result.slice(insertionPoint + "```\n</execution>".length) : result + `
@@ -48936,15 +48943,14 @@ function prefixGitCommandsInBashCodeBlocks(template, prefix) {
48936
48943
  function prefixGitCommandsInCodeBlock(codeBlock, prefix) {
48937
48944
  return codeBlock.replace(LEADING_GIT_COMMAND_PATTERN, `$1${prefix} git`).replace(INLINE_GIT_COMMAND_PATTERN, `$1${prefix} git`);
48938
48945
  }
48939
- function buildCommitFooterInjection(commitFooter, includeCoAuthoredBy, gitEnvPrefix) {
48946
+ function buildCommitFooterInjection(commitFooter, includeCoAuthoredBy) {
48940
48947
  const sections = [];
48941
- const cmdPrefix = gitEnvPrefix ? `${gitEnvPrefix} ` : "";
48942
48948
  sections.push("### 5.5 Commit Footer & Co-Author");
48943
48949
  sections.push("");
48944
- sections.push("Add Coder attribution to EVERY commit:");
48950
+ sections.push("Add DrizzyAgent attribution to EVERY commit:");
48945
48951
  sections.push("");
48946
48952
  if (commitFooter) {
48947
- const footerText = typeof commitFooter === "string" ? commitFooter : "Ultraworked with [Coder](https://github.com/code-yeongyu/oh-my-openagent)";
48953
+ const footerText = typeof commitFooter === "string" ? commitFooter : DEFAULT_COMMIT_FOOTER;
48948
48954
  sections.push("1. **Footer in commit body:**");
48949
48955
  sections.push("```");
48950
48956
  sections.push(footerText);
@@ -48954,26 +48960,26 @@ function buildCommitFooterInjection(commitFooter, includeCoAuthoredBy, gitEnvPre
48954
48960
  if (includeCoAuthoredBy) {
48955
48961
  sections.push(`${commitFooter ? "2" : "1"}. **Co-authored-by trailer:**`);
48956
48962
  sections.push("```");
48957
- sections.push("Co-authored-by: Coder <clio-agent@coderlabs.ai>");
48963
+ sections.push(DEFAULT_CO_AUTHORED_BY);
48958
48964
  sections.push("```");
48959
48965
  sections.push("");
48960
48966
  }
48961
48967
  if (commitFooter && includeCoAuthoredBy) {
48962
- const footerText = typeof commitFooter === "string" ? commitFooter : "Ultraworked with [Coder](https://github.com/code-yeongyu/oh-my-openagent)";
48968
+ const footerText = typeof commitFooter === "string" ? commitFooter : DEFAULT_COMMIT_FOOTER;
48963
48969
  sections.push("**Example (both enabled):**");
48964
48970
  sections.push("```bash");
48965
- sections.push(`${cmdPrefix}git commit -m "{Commit Message}" -m "${footerText}" -m "Co-authored-by: Coder <clio-agent@coderlabs.ai>"`);
48971
+ sections.push(`git commit -m "{Commit Message}" -m "${footerText}" -m "${DEFAULT_CO_AUTHORED_BY}"`);
48966
48972
  sections.push("```");
48967
48973
  } else if (commitFooter) {
48968
- const footerText = typeof commitFooter === "string" ? commitFooter : "Ultraworked with [Coder](https://github.com/code-yeongyu/oh-my-openagent)";
48974
+ const footerText = typeof commitFooter === "string" ? commitFooter : DEFAULT_COMMIT_FOOTER;
48969
48975
  sections.push("**Example:**");
48970
48976
  sections.push("```bash");
48971
- sections.push(`${cmdPrefix}git commit -m "{Commit Message}" -m "${footerText}"`);
48977
+ sections.push(`git commit -m "{Commit Message}" -m "${footerText}"`);
48972
48978
  sections.push("```");
48973
48979
  } else if (includeCoAuthoredBy) {
48974
48980
  sections.push("**Example:**");
48975
48981
  sections.push("```bash");
48976
- sections.push(`${cmdPrefix}git commit -m "{Commit Message}" -m "Co-authored-by: Coder <clio-agent@coderlabs.ai>"`);
48982
+ sections.push(`git commit -m "{Commit Message}" -m "${DEFAULT_CO_AUTHORED_BY}"`);
48977
48983
  sections.push("```");
48978
48984
  }
48979
48985
  return sections.join(`
@@ -94479,7 +94485,9 @@ function getConfiguredDefaultAgent(config4) {
94479
94485
  if (typeof defaultAgent !== "string")
94480
94486
  return;
94481
94487
  const trimmedDefaultAgent = defaultAgent.trim();
94482
- return trimmedDefaultAgent.length > 0 ? trimmedDefaultAgent : undefined;
94488
+ if (trimmedDefaultAgent.length === 0)
94489
+ return;
94490
+ return AGENT_NAME_MAP[trimmedDefaultAgent.toLowerCase()] ?? AGENT_NAME_MAP[trimmedDefaultAgent] ?? trimmedDefaultAgent;
94483
94491
  }
94484
94492
  async function applyAgentConfig(params) {
94485
94493
  const migratedDisabledAgents = (params.pluginConfig.disabled_agents ?? []).map((agent) => {
@@ -94540,14 +94548,14 @@ async function applyAgentConfig(params) {
94540
94548
  const shouldDemotePlan = plannerEnabled && replacePlan;
94541
94549
  const configuredDefaultAgent = getConfiguredDefaultAgent(params.config);
94542
94550
  const configAgent = params.config.agent;
94543
- if (isCoderEnabled && builtinAgents.drizzy) {
94551
+ if (isCoderEnabled && builtinAgents.coder) {
94544
94552
  if (configuredDefaultAgent) {
94545
94553
  params.config.default_agent = getAgentDisplayName(configuredDefaultAgent);
94546
94554
  } else {
94547
94555
  params.config.default_agent = getAgentDisplayName("coder");
94548
94556
  }
94549
94557
  const agentConfig = {
94550
- coder: builtinAgents.drizzy
94558
+ coder: builtinAgents.coder
94551
94559
  };
94552
94560
  agentConfig["coder-junior"] = createCoderJuniorAgentWithOverrides(params.pluginConfig.agents?.["coder-junior"], undefined, useTaskSystem);
94553
94561
  if (builderEnabled) {
@@ -1,3 +1,4 @@
1
1
  export type SplitDirection = "-h" | "-v";
2
+ export declare function isInsideTmuxWithEnv(env: NodeJS.ProcessEnv): boolean;
2
3
  export declare function isInsideTmux(): boolean;
3
4
  export declare function getCurrentPaneId(): string | undefined;
@@ -1,4 +1,4 @@
1
- export { isInsideTmux, getCurrentPaneId } from "./tmux-utils/environment";
1
+ export { isInsideTmux, isInsideTmuxWithEnv, getCurrentPaneId } from "./tmux-utils/environment";
2
2
  export type { SplitDirection } from "./tmux-utils/environment";
3
3
  export { isServerRunning, resetServerCheck } from "./tmux-utils/server-health";
4
4
  export { getPaneDimensions } from "./tmux-utils/pane-dimensions";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzy-agent",
3
- "version": "0.1.3",
3
+ "version": "0.2.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.1.3",
80
- "drizzy-agent-darwin-x64": "0.1.3",
81
- "drizzy-agent-darwin-x64-baseline": "0.1.3",
82
- "drizzy-agent-linux-arm64": "0.1.3",
83
- "drizzy-agent-linux-arm64-musl": "0.1.3",
84
- "drizzy-agent-linux-x64": "0.1.3",
85
- "drizzy-agent-linux-x64-baseline": "0.1.3",
86
- "drizzy-agent-linux-x64-musl": "0.1.3",
87
- "drizzy-agent-linux-x64-musl-baseline": "0.1.3",
88
- "drizzy-agent-windows-x64": "0.1.3",
89
- "drizzy-agent-windows-x64-baseline": "0.1.3"
79
+ "drizzy-agent-darwin-arm64": "0.2.0",
80
+ "drizzy-agent-darwin-x64": "0.2.0",
81
+ "drizzy-agent-darwin-x64-baseline": "0.2.0",
82
+ "drizzy-agent-linux-arm64": "0.2.0",
83
+ "drizzy-agent-linux-arm64-musl": "0.2.0",
84
+ "drizzy-agent-linux-x64": "0.2.0",
85
+ "drizzy-agent-linux-x64-baseline": "0.2.0",
86
+ "drizzy-agent-linux-x64-musl": "0.2.0",
87
+ "drizzy-agent-linux-x64-musl-baseline": "0.2.0",
88
+ "drizzy-agent-windows-x64": "0.2.0",
89
+ "drizzy-agent-windows-x64-baseline": "0.2.0"
90
90
  },
91
91
  "overrides": {
92
92
  "@opencode-ai/sdk": "^1.2.24"