oh-my-opencode-unguarded 3.9.0 → 3.9.3
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 +82 -82
- package/README.ja.md +347 -347
- package/README.ko.md +346 -346
- package/README.md +43 -386
- package/README.ru.md +367 -367
- package/README.zh-cn.md +346 -346
- package/bin/oh-my-opencode.js +141 -141
- package/bin/platform.d.ts +14 -14
- package/bin/platform.js +82 -82
- package/bin/platform.test.ts +203 -203
- package/dist/cli/doctor/constants.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/hooks/auto-update-checker/constants.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +99 -99
- package/postinstall.mjs +59 -59
package/bin/platform.test.ts
CHANGED
|
@@ -1,203 +1,203 @@
|
|
|
1
|
-
// bin/platform.test.ts
|
|
2
|
-
import { describe, expect, test } from "bun:test";
|
|
3
|
-
import { getBinaryPath, getPlatformPackage, getPlatformPackageCandidates } from "./platform.js";
|
|
4
|
-
|
|
5
|
-
describe("getPlatformPackage", () => {
|
|
6
|
-
// #region Darwin platforms
|
|
7
|
-
test("returns darwin-arm64 for macOS ARM64", () => {
|
|
8
|
-
// #given macOS ARM64 platform
|
|
9
|
-
const input = { platform: "darwin", arch: "arm64" };
|
|
10
|
-
|
|
11
|
-
// #when getting platform package
|
|
12
|
-
const result = getPlatformPackage(input);
|
|
13
|
-
|
|
14
|
-
// #then returns correct package name
|
|
15
|
-
expect(result).toBe("oh-my-opencode-darwin-arm64");
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
test("returns darwin-x64 for macOS Intel", () => {
|
|
19
|
-
// #given macOS x64 platform
|
|
20
|
-
const input = { platform: "darwin", arch: "x64" };
|
|
21
|
-
|
|
22
|
-
// #when getting platform package
|
|
23
|
-
const result = getPlatformPackage(input);
|
|
24
|
-
|
|
25
|
-
// #then returns correct package name
|
|
26
|
-
expect(result).toBe("oh-my-opencode-darwin-x64");
|
|
27
|
-
});
|
|
28
|
-
// #endregion
|
|
29
|
-
|
|
30
|
-
// #region Linux glibc platforms
|
|
31
|
-
test("returns linux-x64 for Linux x64 with glibc", () => {
|
|
32
|
-
// #given Linux x64 with glibc
|
|
33
|
-
const input = { platform: "linux", arch: "x64", libcFamily: "glibc" };
|
|
34
|
-
|
|
35
|
-
// #when getting platform package
|
|
36
|
-
const result = getPlatformPackage(input);
|
|
37
|
-
|
|
38
|
-
// #then returns correct package name
|
|
39
|
-
expect(result).toBe("oh-my-opencode-linux-x64");
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
test("returns linux-arm64 for Linux ARM64 with glibc", () => {
|
|
43
|
-
// #given Linux ARM64 with glibc
|
|
44
|
-
const input = { platform: "linux", arch: "arm64", libcFamily: "glibc" };
|
|
45
|
-
|
|
46
|
-
// #when getting platform package
|
|
47
|
-
const result = getPlatformPackage(input);
|
|
48
|
-
|
|
49
|
-
// #then returns correct package name
|
|
50
|
-
expect(result).toBe("oh-my-opencode-linux-arm64");
|
|
51
|
-
});
|
|
52
|
-
// #endregion
|
|
53
|
-
|
|
54
|
-
// #region Linux musl platforms
|
|
55
|
-
test("returns linux-x64-musl for Alpine x64", () => {
|
|
56
|
-
// #given Linux x64 with musl (Alpine)
|
|
57
|
-
const input = { platform: "linux", arch: "x64", libcFamily: "musl" };
|
|
58
|
-
|
|
59
|
-
// #when getting platform package
|
|
60
|
-
const result = getPlatformPackage(input);
|
|
61
|
-
|
|
62
|
-
// #then returns correct package name with musl suffix
|
|
63
|
-
expect(result).toBe("oh-my-opencode-linux-x64-musl");
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
test("returns linux-arm64-musl for Alpine ARM64", () => {
|
|
67
|
-
// #given Linux ARM64 with musl (Alpine)
|
|
68
|
-
const input = { platform: "linux", arch: "arm64", libcFamily: "musl" };
|
|
69
|
-
|
|
70
|
-
// #when getting platform package
|
|
71
|
-
const result = getPlatformPackage(input);
|
|
72
|
-
|
|
73
|
-
// #then returns correct package name with musl suffix
|
|
74
|
-
expect(result).toBe("oh-my-opencode-linux-arm64-musl");
|
|
75
|
-
});
|
|
76
|
-
// #endregion
|
|
77
|
-
|
|
78
|
-
// #region Windows platform
|
|
79
|
-
test("returns windows-x64 for Windows", () => {
|
|
80
|
-
// #given Windows x64 platform (win32 is Node's platform name)
|
|
81
|
-
const input = { platform: "win32", arch: "x64" };
|
|
82
|
-
|
|
83
|
-
// #when getting platform package
|
|
84
|
-
const result = getPlatformPackage(input);
|
|
85
|
-
|
|
86
|
-
// #then returns correct package name with 'windows' not 'win32'
|
|
87
|
-
expect(result).toBe("oh-my-opencode-windows-x64");
|
|
88
|
-
});
|
|
89
|
-
// #endregion
|
|
90
|
-
|
|
91
|
-
// #region Error cases
|
|
92
|
-
test("throws error for Linux with null libcFamily", () => {
|
|
93
|
-
// #given Linux platform with null libc detection
|
|
94
|
-
const input = { platform: "linux", arch: "x64", libcFamily: null };
|
|
95
|
-
|
|
96
|
-
// #when getting platform package
|
|
97
|
-
// #then throws descriptive error
|
|
98
|
-
expect(() => getPlatformPackage(input)).toThrow("Could not detect libc");
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
test("throws error for Linux with undefined libcFamily", () => {
|
|
102
|
-
// #given Linux platform with undefined libc
|
|
103
|
-
const input = { platform: "linux", arch: "x64", libcFamily: undefined };
|
|
104
|
-
|
|
105
|
-
// #when getting platform package
|
|
106
|
-
// #then throws descriptive error
|
|
107
|
-
expect(() => getPlatformPackage(input)).toThrow("Could not detect libc");
|
|
108
|
-
});
|
|
109
|
-
// #endregion
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
describe("getBinaryPath", () => {
|
|
113
|
-
test("returns path without .exe for Unix platforms", () => {
|
|
114
|
-
// #given Unix platform package
|
|
115
|
-
const pkg = "oh-my-opencode-darwin-arm64";
|
|
116
|
-
const platform = "darwin";
|
|
117
|
-
|
|
118
|
-
// #when getting binary path
|
|
119
|
-
const result = getBinaryPath(pkg, platform);
|
|
120
|
-
|
|
121
|
-
// #then returns path without extension
|
|
122
|
-
expect(result).toBe("oh-my-opencode-darwin-arm64/bin/oh-my-opencode");
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
test("returns path with .exe for Windows", () => {
|
|
126
|
-
// #given Windows platform package
|
|
127
|
-
const pkg = "oh-my-opencode-windows-x64";
|
|
128
|
-
const platform = "win32";
|
|
129
|
-
|
|
130
|
-
// #when getting binary path
|
|
131
|
-
const result = getBinaryPath(pkg, platform);
|
|
132
|
-
|
|
133
|
-
// #then returns path with .exe extension
|
|
134
|
-
expect(result).toBe("oh-my-opencode-windows-x64/bin/oh-my-opencode.exe");
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
test("returns path without .exe for Linux", () => {
|
|
138
|
-
// #given Linux platform package
|
|
139
|
-
const pkg = "oh-my-opencode-linux-x64";
|
|
140
|
-
const platform = "linux";
|
|
141
|
-
|
|
142
|
-
// #when getting binary path
|
|
143
|
-
const result = getBinaryPath(pkg, platform);
|
|
144
|
-
|
|
145
|
-
// #then returns path without extension
|
|
146
|
-
expect(result).toBe("oh-my-opencode-linux-x64/bin/oh-my-opencode");
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
describe("getPlatformPackageCandidates", () => {
|
|
151
|
-
test("returns x64 and baseline candidates for Linux glibc", () => {
|
|
152
|
-
// #given Linux x64 with glibc
|
|
153
|
-
const input = { platform: "linux", arch: "x64", libcFamily: "glibc" };
|
|
154
|
-
|
|
155
|
-
// #when getting package candidates
|
|
156
|
-
const result = getPlatformPackageCandidates(input);
|
|
157
|
-
|
|
158
|
-
// #then returns modern first then baseline fallback
|
|
159
|
-
expect(result).toEqual([
|
|
160
|
-
"oh-my-opencode-linux-x64",
|
|
161
|
-
"oh-my-opencode-linux-x64-baseline",
|
|
162
|
-
]);
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
test("returns x64 musl and baseline candidates for Linux musl", () => {
|
|
166
|
-
// #given Linux x64 with musl
|
|
167
|
-
const input = { platform: "linux", arch: "x64", libcFamily: "musl" };
|
|
168
|
-
|
|
169
|
-
// #when getting package candidates
|
|
170
|
-
const result = getPlatformPackageCandidates(input);
|
|
171
|
-
|
|
172
|
-
// #then returns musl modern first then musl baseline fallback
|
|
173
|
-
expect(result).toEqual([
|
|
174
|
-
"oh-my-opencode-linux-x64-musl",
|
|
175
|
-
"oh-my-opencode-linux-x64-musl-baseline",
|
|
176
|
-
]);
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
test("returns baseline first when preferBaseline is true", () => {
|
|
180
|
-
// #given Windows x64 and baseline preference
|
|
181
|
-
const input = { platform: "win32", arch: "x64", preferBaseline: true };
|
|
182
|
-
|
|
183
|
-
// #when getting package candidates
|
|
184
|
-
const result = getPlatformPackageCandidates(input);
|
|
185
|
-
|
|
186
|
-
// #then baseline package is preferred first
|
|
187
|
-
expect(result).toEqual([
|
|
188
|
-
"oh-my-opencode-windows-x64-baseline",
|
|
189
|
-
"oh-my-opencode-windows-x64",
|
|
190
|
-
]);
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
test("returns only one candidate for ARM64", () => {
|
|
194
|
-
// #given non-x64 platform
|
|
195
|
-
const input = { platform: "linux", arch: "arm64", libcFamily: "glibc" };
|
|
196
|
-
|
|
197
|
-
// #when getting package candidates
|
|
198
|
-
const result = getPlatformPackageCandidates(input);
|
|
199
|
-
|
|
200
|
-
// #then baseline fallback is not included
|
|
201
|
-
expect(result).toEqual(["oh-my-opencode-linux-arm64"]);
|
|
202
|
-
});
|
|
203
|
-
});
|
|
1
|
+
// bin/platform.test.ts
|
|
2
|
+
import { describe, expect, test } from "bun:test";
|
|
3
|
+
import { getBinaryPath, getPlatformPackage, getPlatformPackageCandidates } from "./platform.js";
|
|
4
|
+
|
|
5
|
+
describe("getPlatformPackage", () => {
|
|
6
|
+
// #region Darwin platforms
|
|
7
|
+
test("returns darwin-arm64 for macOS ARM64", () => {
|
|
8
|
+
// #given macOS ARM64 platform
|
|
9
|
+
const input = { platform: "darwin", arch: "arm64" };
|
|
10
|
+
|
|
11
|
+
// #when getting platform package
|
|
12
|
+
const result = getPlatformPackage(input);
|
|
13
|
+
|
|
14
|
+
// #then returns correct package name
|
|
15
|
+
expect(result).toBe("oh-my-opencode-darwin-arm64");
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test("returns darwin-x64 for macOS Intel", () => {
|
|
19
|
+
// #given macOS x64 platform
|
|
20
|
+
const input = { platform: "darwin", arch: "x64" };
|
|
21
|
+
|
|
22
|
+
// #when getting platform package
|
|
23
|
+
const result = getPlatformPackage(input);
|
|
24
|
+
|
|
25
|
+
// #then returns correct package name
|
|
26
|
+
expect(result).toBe("oh-my-opencode-darwin-x64");
|
|
27
|
+
});
|
|
28
|
+
// #endregion
|
|
29
|
+
|
|
30
|
+
// #region Linux glibc platforms
|
|
31
|
+
test("returns linux-x64 for Linux x64 with glibc", () => {
|
|
32
|
+
// #given Linux x64 with glibc
|
|
33
|
+
const input = { platform: "linux", arch: "x64", libcFamily: "glibc" };
|
|
34
|
+
|
|
35
|
+
// #when getting platform package
|
|
36
|
+
const result = getPlatformPackage(input);
|
|
37
|
+
|
|
38
|
+
// #then returns correct package name
|
|
39
|
+
expect(result).toBe("oh-my-opencode-linux-x64");
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
test("returns linux-arm64 for Linux ARM64 with glibc", () => {
|
|
43
|
+
// #given Linux ARM64 with glibc
|
|
44
|
+
const input = { platform: "linux", arch: "arm64", libcFamily: "glibc" };
|
|
45
|
+
|
|
46
|
+
// #when getting platform package
|
|
47
|
+
const result = getPlatformPackage(input);
|
|
48
|
+
|
|
49
|
+
// #then returns correct package name
|
|
50
|
+
expect(result).toBe("oh-my-opencode-linux-arm64");
|
|
51
|
+
});
|
|
52
|
+
// #endregion
|
|
53
|
+
|
|
54
|
+
// #region Linux musl platforms
|
|
55
|
+
test("returns linux-x64-musl for Alpine x64", () => {
|
|
56
|
+
// #given Linux x64 with musl (Alpine)
|
|
57
|
+
const input = { platform: "linux", arch: "x64", libcFamily: "musl" };
|
|
58
|
+
|
|
59
|
+
// #when getting platform package
|
|
60
|
+
const result = getPlatformPackage(input);
|
|
61
|
+
|
|
62
|
+
// #then returns correct package name with musl suffix
|
|
63
|
+
expect(result).toBe("oh-my-opencode-linux-x64-musl");
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
test("returns linux-arm64-musl for Alpine ARM64", () => {
|
|
67
|
+
// #given Linux ARM64 with musl (Alpine)
|
|
68
|
+
const input = { platform: "linux", arch: "arm64", libcFamily: "musl" };
|
|
69
|
+
|
|
70
|
+
// #when getting platform package
|
|
71
|
+
const result = getPlatformPackage(input);
|
|
72
|
+
|
|
73
|
+
// #then returns correct package name with musl suffix
|
|
74
|
+
expect(result).toBe("oh-my-opencode-linux-arm64-musl");
|
|
75
|
+
});
|
|
76
|
+
// #endregion
|
|
77
|
+
|
|
78
|
+
// #region Windows platform
|
|
79
|
+
test("returns windows-x64 for Windows", () => {
|
|
80
|
+
// #given Windows x64 platform (win32 is Node's platform name)
|
|
81
|
+
const input = { platform: "win32", arch: "x64" };
|
|
82
|
+
|
|
83
|
+
// #when getting platform package
|
|
84
|
+
const result = getPlatformPackage(input);
|
|
85
|
+
|
|
86
|
+
// #then returns correct package name with 'windows' not 'win32'
|
|
87
|
+
expect(result).toBe("oh-my-opencode-windows-x64");
|
|
88
|
+
});
|
|
89
|
+
// #endregion
|
|
90
|
+
|
|
91
|
+
// #region Error cases
|
|
92
|
+
test("throws error for Linux with null libcFamily", () => {
|
|
93
|
+
// #given Linux platform with null libc detection
|
|
94
|
+
const input = { platform: "linux", arch: "x64", libcFamily: null };
|
|
95
|
+
|
|
96
|
+
// #when getting platform package
|
|
97
|
+
// #then throws descriptive error
|
|
98
|
+
expect(() => getPlatformPackage(input)).toThrow("Could not detect libc");
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
test("throws error for Linux with undefined libcFamily", () => {
|
|
102
|
+
// #given Linux platform with undefined libc
|
|
103
|
+
const input = { platform: "linux", arch: "x64", libcFamily: undefined };
|
|
104
|
+
|
|
105
|
+
// #when getting platform package
|
|
106
|
+
// #then throws descriptive error
|
|
107
|
+
expect(() => getPlatformPackage(input)).toThrow("Could not detect libc");
|
|
108
|
+
});
|
|
109
|
+
// #endregion
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
describe("getBinaryPath", () => {
|
|
113
|
+
test("returns path without .exe for Unix platforms", () => {
|
|
114
|
+
// #given Unix platform package
|
|
115
|
+
const pkg = "oh-my-opencode-darwin-arm64";
|
|
116
|
+
const platform = "darwin";
|
|
117
|
+
|
|
118
|
+
// #when getting binary path
|
|
119
|
+
const result = getBinaryPath(pkg, platform);
|
|
120
|
+
|
|
121
|
+
// #then returns path without extension
|
|
122
|
+
expect(result).toBe("oh-my-opencode-darwin-arm64/bin/oh-my-opencode");
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
test("returns path with .exe for Windows", () => {
|
|
126
|
+
// #given Windows platform package
|
|
127
|
+
const pkg = "oh-my-opencode-windows-x64";
|
|
128
|
+
const platform = "win32";
|
|
129
|
+
|
|
130
|
+
// #when getting binary path
|
|
131
|
+
const result = getBinaryPath(pkg, platform);
|
|
132
|
+
|
|
133
|
+
// #then returns path with .exe extension
|
|
134
|
+
expect(result).toBe("oh-my-opencode-windows-x64/bin/oh-my-opencode.exe");
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
test("returns path without .exe for Linux", () => {
|
|
138
|
+
// #given Linux platform package
|
|
139
|
+
const pkg = "oh-my-opencode-linux-x64";
|
|
140
|
+
const platform = "linux";
|
|
141
|
+
|
|
142
|
+
// #when getting binary path
|
|
143
|
+
const result = getBinaryPath(pkg, platform);
|
|
144
|
+
|
|
145
|
+
// #then returns path without extension
|
|
146
|
+
expect(result).toBe("oh-my-opencode-linux-x64/bin/oh-my-opencode");
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
describe("getPlatformPackageCandidates", () => {
|
|
151
|
+
test("returns x64 and baseline candidates for Linux glibc", () => {
|
|
152
|
+
// #given Linux x64 with glibc
|
|
153
|
+
const input = { platform: "linux", arch: "x64", libcFamily: "glibc" };
|
|
154
|
+
|
|
155
|
+
// #when getting package candidates
|
|
156
|
+
const result = getPlatformPackageCandidates(input);
|
|
157
|
+
|
|
158
|
+
// #then returns modern first then baseline fallback
|
|
159
|
+
expect(result).toEqual([
|
|
160
|
+
"oh-my-opencode-linux-x64",
|
|
161
|
+
"oh-my-opencode-linux-x64-baseline",
|
|
162
|
+
]);
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
test("returns x64 musl and baseline candidates for Linux musl", () => {
|
|
166
|
+
// #given Linux x64 with musl
|
|
167
|
+
const input = { platform: "linux", arch: "x64", libcFamily: "musl" };
|
|
168
|
+
|
|
169
|
+
// #when getting package candidates
|
|
170
|
+
const result = getPlatformPackageCandidates(input);
|
|
171
|
+
|
|
172
|
+
// #then returns musl modern first then musl baseline fallback
|
|
173
|
+
expect(result).toEqual([
|
|
174
|
+
"oh-my-opencode-linux-x64-musl",
|
|
175
|
+
"oh-my-opencode-linux-x64-musl-baseline",
|
|
176
|
+
]);
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
test("returns baseline first when preferBaseline is true", () => {
|
|
180
|
+
// #given Windows x64 and baseline preference
|
|
181
|
+
const input = { platform: "win32", arch: "x64", preferBaseline: true };
|
|
182
|
+
|
|
183
|
+
// #when getting package candidates
|
|
184
|
+
const result = getPlatformPackageCandidates(input);
|
|
185
|
+
|
|
186
|
+
// #then baseline package is preferred first
|
|
187
|
+
expect(result).toEqual([
|
|
188
|
+
"oh-my-opencode-windows-x64-baseline",
|
|
189
|
+
"oh-my-opencode-windows-x64",
|
|
190
|
+
]);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
test("returns only one candidate for ARM64", () => {
|
|
194
|
+
// #given non-x64 platform
|
|
195
|
+
const input = { platform: "linux", arch: "arm64", libcFamily: "glibc" };
|
|
196
|
+
|
|
197
|
+
// #when getting package candidates
|
|
198
|
+
const result = getPlatformPackageCandidates(input);
|
|
199
|
+
|
|
200
|
+
// #then baseline fallback is not included
|
|
201
|
+
expect(result).toEqual(["oh-my-opencode-linux-arm64"]);
|
|
202
|
+
});
|
|
203
|
+
});
|
|
@@ -25,5 +25,5 @@ export declare const EXIT_CODES: {
|
|
|
25
25
|
readonly FAILURE: 1;
|
|
26
26
|
};
|
|
27
27
|
export declare const MIN_OPENCODE_VERSION = "1.0.150";
|
|
28
|
-
export declare const PACKAGE_NAME = "oh-my-opencode";
|
|
28
|
+
export declare const PACKAGE_NAME = "oh-my-opencode-unguarded";
|
|
29
29
|
export declare const OPENCODE_BINARIES: readonly ["opencode", "opencode-desktop"];
|
package/dist/cli/index.js
CHANGED
|
@@ -7432,7 +7432,7 @@ async function getPluginNameWithVersion(currentVersion) {
|
|
|
7432
7432
|
}
|
|
7433
7433
|
return getFallbackEntry(currentVersion);
|
|
7434
7434
|
}
|
|
7435
|
-
var PACKAGE_NAME = "oh-my-opencode", PRIORITIZED_TAGS;
|
|
7435
|
+
var PACKAGE_NAME = "oh-my-opencode-unguarded", PRIORITIZED_TAGS;
|
|
7436
7436
|
var init_plugin_name_with_version = __esm(() => {
|
|
7437
7437
|
PRIORITIZED_TAGS = ["latest", "beta", "next"];
|
|
7438
7438
|
});
|
|
@@ -7599,7 +7599,7 @@ async function addPluginToOpenCodeConfig(currentVersion) {
|
|
|
7599
7599
|
};
|
|
7600
7600
|
}
|
|
7601
7601
|
}
|
|
7602
|
-
var PACKAGE_NAME2 = "oh-my-opencode";
|
|
7602
|
+
var PACKAGE_NAME2 = "oh-my-opencode-unguarded";
|
|
7603
7603
|
var init_add_plugin_to_opencode_config = __esm(() => {
|
|
7604
7604
|
init_config_context();
|
|
7605
7605
|
init_ensure_config_directory_exists();
|
|
@@ -8543,7 +8543,7 @@ function getWindowsAppdataDir() {
|
|
|
8543
8543
|
return null;
|
|
8544
8544
|
return process.env.APPDATA ?? path4.join(os3.homedir(), "AppData", "Roaming");
|
|
8545
8545
|
}
|
|
8546
|
-
var PACKAGE_NAME3 = "oh-my-opencode", NPM_REGISTRY_URL, NPM_FETCH_TIMEOUT = 5000, CACHE_DIR, VERSION_FILE, USER_CONFIG_DIR, USER_OPENCODE_CONFIG, USER_OPENCODE_CONFIG_JSONC, INSTALLED_PACKAGE_JSON;
|
|
8546
|
+
var PACKAGE_NAME3 = "oh-my-opencode-unguarded", NPM_REGISTRY_URL, NPM_FETCH_TIMEOUT = 5000, CACHE_DIR, VERSION_FILE, USER_CONFIG_DIR, USER_OPENCODE_CONFIG, USER_OPENCODE_CONFIG_JSONC, INSTALLED_PACKAGE_JSON;
|
|
8547
8547
|
var init_constants3 = __esm(() => {
|
|
8548
8548
|
init_shared();
|
|
8549
8549
|
NPM_REGISTRY_URL = `https://registry.npmjs.org/-/package/${PACKAGE_NAME3}/dist-tags`;
|
|
@@ -9329,7 +9329,7 @@ var {
|
|
|
9329
9329
|
// package.json
|
|
9330
9330
|
var package_default = {
|
|
9331
9331
|
name: "oh-my-opencode-unguarded",
|
|
9332
|
-
version: "3.9.
|
|
9332
|
+
version: "3.9.3",
|
|
9333
9333
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
9334
9334
|
main: "dist/index.js",
|
|
9335
9335
|
types: "dist/index.d.ts",
|
|
@@ -26594,7 +26594,7 @@ var EXIT_CODES = {
|
|
|
26594
26594
|
FAILURE: 1
|
|
26595
26595
|
};
|
|
26596
26596
|
var MIN_OPENCODE_VERSION = "1.0.150";
|
|
26597
|
-
var PACKAGE_NAME4 = "oh-my-opencode";
|
|
26597
|
+
var PACKAGE_NAME4 = "oh-my-opencode-unguarded";
|
|
26598
26598
|
var OPENCODE_BINARIES2 = ["opencode", "opencode-desktop"];
|
|
26599
26599
|
|
|
26600
26600
|
// src/cli/doctor/checks/system.ts
|
|
@@ -28611,7 +28611,7 @@ function createMcpOAuthCommand() {
|
|
|
28611
28611
|
// src/cli/cli-program.ts
|
|
28612
28612
|
var VERSION2 = package_default.version;
|
|
28613
28613
|
var program2 = new Command;
|
|
28614
|
-
program2.name("oh-my-opencode").description("The ultimate OpenCode plugin - multi-model orchestration, LSP tools, and more").version(VERSION2, "-v, --version", "Show version number").enablePositionalOptions();
|
|
28614
|
+
program2.name("oh-my-opencode-unguarded").description("The ultimate OpenCode plugin - multi-model orchestration, LSP tools, and more").version(VERSION2, "-v, --version", "Show version number").enablePositionalOptions();
|
|
28615
28615
|
program2.command("install").description("Install and configure oh-my-opencode with interactive setup").option("--no-tui", "Run in non-interactive mode (requires all options)").option("--claude <value>", "Claude subscription: no, yes, max20").option("--openai <value>", "OpenAI/ChatGPT subscription: no, yes (default: no)").option("--gemini <value>", "Gemini integration: no, yes").option("--copilot <value>", "GitHub Copilot subscription: no, yes").option("--opencode-zen <value>", "OpenCode Zen access: no, yes (default: no)").option("--zai-coding-plan <value>", "Z.ai Coding Plan subscription: no, yes (default: no)").option("--kimi-for-coding <value>", "Kimi For Coding subscription: no, yes (default: no)").option("--skip-auth", "Skip authentication setup hints").addHelpText("after", `
|
|
28616
28616
|
Examples:
|
|
28617
28617
|
$ bunx oh-my-opencode install
|
|
@@ -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 = "oh-my-opencode-unguarded";
|
|
2
|
+
export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org/-/package/oh-my-opencode-unguarded/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;
|
package/dist/index.js
CHANGED
|
@@ -38267,7 +38267,7 @@ import { fileURLToPath } from "url";
|
|
|
38267
38267
|
// src/hooks/auto-update-checker/constants.ts
|
|
38268
38268
|
import * as path5 from "path";
|
|
38269
38269
|
import * as os4 from "os";
|
|
38270
|
-
var PACKAGE_NAME = "oh-my-opencode";
|
|
38270
|
+
var PACKAGE_NAME = "oh-my-opencode-unguarded";
|
|
38271
38271
|
var NPM_REGISTRY_URL = `https://registry.npmjs.org/-/package/${PACKAGE_NAME}/dist-tags`;
|
|
38272
38272
|
var NPM_FETCH_TIMEOUT = 5000;
|
|
38273
38273
|
function getCacheDir3() {
|