oh-my-opencode-unguarded 3.10.18 → 3.10.20

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.
@@ -122,7 +122,7 @@ function main() {
122
122
  preferBaseline: avx2Supported === false,
123
123
  });
124
124
  } catch (error) {
125
- console.error(`\noh-my-opencode: ${error.message}\n`);
125
+ console.error(`\nevil-oh-my-opencode: ${error.message}\n`);
126
126
  process.exit(1);
127
127
  }
128
128
 
@@ -137,7 +137,7 @@ function main() {
137
137
  .filter((entry) => entry !== null);
138
138
 
139
139
  if (resolvedBinaries.length === 0) {
140
- console.error(`\noh-my-opencode: Platform binary not installed.`);
140
+ console.error(`\nevil-oh-my-opencode: Platform binary not installed.`);
141
141
  console.error(`\nYour platform: ${platform}-${arch}${libcFamily === "musl" ? "-musl" : ""}`);
142
142
  console.error(`Expected packages (in order): ${packageCandidates.join(", ")}`);
143
143
  console.error(`\nTo fix, run:`);
@@ -157,7 +157,7 @@ function main() {
157
157
  continue;
158
158
  }
159
159
 
160
- console.error(`\noh-my-opencode: Failed to execute binary.`);
160
+ console.error(`\nevil-oh-my-opencode: Failed to execute binary.`);
161
161
  console.error(`Error: ${result.error.message}\n`);
162
162
  process.exit(2);
163
163
  }
package/bin/platform.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Get the platform-specific package name
6
6
  * @param {{ platform: string, arch: string, libcFamily?: string | null }} options
7
- * @returns {string} Package name like "oh-my-opencode-darwin-arm64"
7
+ * @returns {string} Package name like "evil-oh-my-opencode-darwin-arm64"
8
8
  * @throws {Error} If libc cannot be detected on Linux
9
9
  */
10
10
  export function getPlatformPackage({ platform, arch, libcFamily }) {
@@ -23,7 +23,7 @@ export function getPlatformPackage({ platform, arch, libcFamily }) {
23
23
 
24
24
  // Map platform names: win32 -> windows (for package name)
25
25
  const os = platform === "win32" ? "windows" : platform;
26
- return `oh-my-opencode-${os}-${arch}${suffix}`;
26
+ return `evil-oh-my-opencode-${os}-${arch}${suffix}`;
27
27
  }
28
28
 
29
29
  /** @param {{ platform: string, arch: string, libcFamily?: string | null, preferBaseline?: boolean }} options */
@@ -45,11 +45,11 @@ function getBaselinePlatformPackage({ platform, arch, libcFamily }) {
45
45
  }
46
46
 
47
47
  if (platform === "darwin") {
48
- return "oh-my-opencode-darwin-x64-baseline";
48
+ return "evil-oh-my-opencode-darwin-x64-baseline";
49
49
  }
50
50
 
51
51
  if (platform === "win32") {
52
- return "oh-my-opencode-windows-x64-baseline";
52
+ return "evil-oh-my-opencode-windows-x64-baseline";
53
53
  }
54
54
 
55
55
  if (platform === "linux") {
@@ -61,10 +61,10 @@ function getBaselinePlatformPackage({ platform, arch, libcFamily }) {
61
61
  }
62
62
 
63
63
  if (libcFamily === "musl") {
64
- return "oh-my-opencode-linux-x64-musl-baseline";
64
+ return "evil-oh-my-opencode-linux-x64-musl-baseline";
65
65
  }
66
66
 
67
- return "oh-my-opencode-linux-x64-baseline";
67
+ return "evil-oh-my-opencode-linux-x64-baseline";
68
68
  }
69
69
 
70
70
  return null;
@@ -74,9 +74,9 @@ function getBaselinePlatformPackage({ platform, arch, libcFamily }) {
74
74
  * Get the path to the binary within a platform package
75
75
  * @param {string} pkg Package name
76
76
  * @param {string} platform Process platform
77
- * @returns {string} Relative path like "oh-my-opencode-darwin-arm64/bin/oh-my-opencode"
77
+ * @returns {string} Relative path like "evil-oh-my-opencode-darwin-arm64/bin/evil-oh-my-opencode"
78
78
  */
79
79
  export function getBinaryPath(pkg, platform) {
80
80
  const ext = platform === "win32" ? ".exe" : "";
81
- return `${pkg}/bin/oh-my-opencode${ext}`;
81
+ return `${pkg}/bin/evil-oh-my-opencode${ext}`;
82
82
  }
@@ -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("evil-oh-my-opencode-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("evil-oh-my-opencode-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("evil-oh-my-opencode-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("evil-oh-my-opencode-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("evil-oh-my-opencode-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("evil-oh-my-opencode-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("evil-oh-my-opencode-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 = "evil-oh-my-opencode-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("evil-oh-my-opencode-darwin-arm64/bin/evil-oh-my-opencode");
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 = "evil-oh-my-opencode-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("evil-oh-my-opencode-windows-x64/bin/evil-oh-my-opencode.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 = "evil-oh-my-opencode-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("evil-oh-my-opencode-linux-x64/bin/evil-oh-my-opencode");
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
+ "evil-oh-my-opencode-linux-x64",
161
+ "evil-oh-my-opencode-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
+ "evil-oh-my-opencode-linux-x64-musl",
175
+ "evil-oh-my-opencode-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
+ "evil-oh-my-opencode-windows-x64-baseline",
189
+ "evil-oh-my-opencode-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(["evil-oh-my-opencode-linux-arm64"]);
202
202
  });
203
203
  });
package/dist/cli/index.js CHANGED
@@ -9495,7 +9495,7 @@ var {
9495
9495
  // package.json
9496
9496
  var package_default = {
9497
9497
  name: "oh-my-opencode-unguarded",
9498
- version: "3.10.18",
9498
+ version: "3.10.20",
9499
9499
  description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
9500
9500
  main: "dist/index.js",
9501
9501
  types: "dist/index.d.ts",
@@ -9517,8 +9517,6 @@ var package_default = {
9517
9517
  },
9518
9518
  scripts: {
9519
9519
  build: "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
9520
- "build:all": "bun run build && bun run build:binaries",
9521
- "build:binaries": "bun run script/build-binaries.ts",
9522
9520
  "build:schema": "bun run script/build-schema.ts",
9523
9521
  clean: "rm -rf dist",
9524
9522
  postinstall: "node postinstall.mjs",
@@ -9569,19 +9567,7 @@ var package_default = {
9569
9567
  "bun-types": "1.3.6",
9570
9568
  typescript: "^5.7.3"
9571
9569
  },
9572
- optionalDependencies: {
9573
- "oh-my-opencode-darwin-arm64": "3.10.0",
9574
- "oh-my-opencode-darwin-x64": "3.10.0",
9575
- "oh-my-opencode-darwin-x64-baseline": "3.10.0",
9576
- "oh-my-opencode-linux-arm64": "3.10.0",
9577
- "oh-my-opencode-linux-arm64-musl": "3.10.0",
9578
- "oh-my-opencode-linux-x64": "3.10.0",
9579
- "oh-my-opencode-linux-x64-baseline": "3.10.0",
9580
- "oh-my-opencode-linux-x64-musl": "3.10.0",
9581
- "oh-my-opencode-linux-x64-musl-baseline": "3.10.0",
9582
- "oh-my-opencode-windows-x64": "3.10.0",
9583
- "oh-my-opencode-windows-x64-baseline": "3.10.0"
9584
- },
9570
+ optionalDependencies: {},
9585
9571
  trustedDependencies: [
9586
9572
  "@ast-grep/cli",
9587
9573
  "@ast-grep/napi",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode-unguarded",
3
- "version": "3.10.18",
3
+ "version": "3.10.20",
4
4
  "description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,8 +22,6 @@
22
22
  },
23
23
  "scripts": {
24
24
  "build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
25
- "build:all": "bun run build && bun run build:binaries",
26
- "build:binaries": "bun run script/build-binaries.ts",
27
25
  "build:schema": "bun run script/build-schema.ts",
28
26
  "clean": "rm -rf dist",
29
27
  "postinstall": "node postinstall.mjs",
@@ -74,19 +72,7 @@
74
72
  "bun-types": "1.3.6",
75
73
  "typescript": "^5.7.3"
76
74
  },
77
- "optionalDependencies": {
78
- "oh-my-opencode-darwin-arm64": "3.10.0",
79
- "oh-my-opencode-darwin-x64": "3.10.0",
80
- "oh-my-opencode-darwin-x64-baseline": "3.10.0",
81
- "oh-my-opencode-linux-arm64": "3.10.0",
82
- "oh-my-opencode-linux-arm64-musl": "3.10.0",
83
- "oh-my-opencode-linux-x64": "3.10.0",
84
- "oh-my-opencode-linux-x64-baseline": "3.10.0",
85
- "oh-my-opencode-linux-x64-musl": "3.10.0",
86
- "oh-my-opencode-linux-x64-musl-baseline": "3.10.0",
87
- "oh-my-opencode-windows-x64": "3.10.0",
88
- "oh-my-opencode-windows-x64-baseline": "3.10.0"
89
- },
75
+ "optionalDependencies": {},
90
76
  "trustedDependencies": [
91
77
  "@ast-grep/cli",
92
78
  "@ast-grep/napi",
package/postinstall.mjs CHANGED
@@ -48,9 +48,9 @@ function main() {
48
48
  );
49
49
  }
50
50
 
51
- console.log(`✓ oh-my-opencode binary installed for ${platform}-${arch} (${resolvedPackage})`);
51
+ console.log(`✓ evil-oh-my-opencode binary installed for ${platform}-${arch} (${resolvedPackage})`);
52
52
  } catch (error) {
53
- console.warn(`⚠ oh-my-opencode: ${error.message}`);
53
+ console.warn(`⚠ evil-oh-my-opencode: ${error.message}`);
54
54
  console.warn(` The CLI may not work on this platform.`);
55
55
  // Don't fail installation - let user try anyway
56
56
  }