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/package.json
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "oh-my-opencode-unguarded",
|
|
3
|
-
"version": "3.9.
|
|
4
|
-
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"bin": {
|
|
9
|
-
"oh-my-opencode-unguarded": "bin/oh-my-opencode.js"
|
|
10
|
-
},
|
|
11
|
-
"files": [
|
|
12
|
-
"dist",
|
|
13
|
-
"bin",
|
|
14
|
-
"postinstall.mjs"
|
|
15
|
-
],
|
|
16
|
-
"exports": {
|
|
17
|
-
".": {
|
|
18
|
-
"types": "./dist/index.d.ts",
|
|
19
|
-
"import": "./dist/index.js"
|
|
20
|
-
},
|
|
21
|
-
"./schema.json": "./dist/oh-my-opencode.schema.json"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
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
|
-
"build:schema": "bun run script/build-schema.ts",
|
|
28
|
-
"clean": "rm -rf dist",
|
|
29
|
-
"postinstall": "node postinstall.mjs",
|
|
30
|
-
"prepublishOnly": "bun run clean && bun run build",
|
|
31
|
-
"typecheck": "tsc --noEmit",
|
|
32
|
-
"test": "bun test"
|
|
33
|
-
},
|
|
34
|
-
"keywords": [
|
|
35
|
-
"opencode",
|
|
36
|
-
"plugin",
|
|
37
|
-
"oracle",
|
|
38
|
-
"librarian",
|
|
39
|
-
"agents",
|
|
40
|
-
"ai",
|
|
41
|
-
"llm"
|
|
42
|
-
],
|
|
43
|
-
"author": "D4ch1au",
|
|
44
|
-
"license": "SUL-1.0",
|
|
45
|
-
"repository": {
|
|
46
|
-
"type": "git",
|
|
47
|
-
"url": "git+https://github.com/D4ch1au/evil-oh-my-opencode.git"
|
|
48
|
-
},
|
|
49
|
-
"bugs": {
|
|
50
|
-
"url": "https://github.com/D4ch1au/evil-oh-my-opencode/issues"
|
|
51
|
-
},
|
|
52
|
-
"homepage": "https://github.com/D4ch1au/evil-oh-my-opencode#readme",
|
|
53
|
-
"publishConfig": {
|
|
54
|
-
"registry": "https://registry.npmjs.org",
|
|
55
|
-
"access": "public"
|
|
56
|
-
},
|
|
57
|
-
"dependencies": {
|
|
58
|
-
"@ast-grep/cli": "^0.40.0",
|
|
59
|
-
"@ast-grep/napi": "^0.40.0",
|
|
60
|
-
"@clack/prompts": "^0.11.0",
|
|
61
|
-
"@code-yeongyu/comment-checker": "^0.6.1",
|
|
62
|
-
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
63
|
-
"@opencode-ai/plugin": "^1.1.19",
|
|
64
|
-
"@opencode-ai/sdk": "^1.1.19",
|
|
65
|
-
"commander": "^14.0.2",
|
|
66
|
-
"detect-libc": "^2.0.0",
|
|
67
|
-
"diff": "^8.0.3",
|
|
68
|
-
"js-yaml": "^4.1.1",
|
|
69
|
-
"jsonc-parser": "^3.3.1",
|
|
70
|
-
"picocolors": "^1.1.1",
|
|
71
|
-
"picomatch": "^4.0.2",
|
|
72
|
-
"vscode-jsonrpc": "^8.2.0",
|
|
73
|
-
"zod": "^4.1.8"
|
|
74
|
-
},
|
|
75
|
-
"devDependencies": {
|
|
76
|
-
"@types/js-yaml": "^4.0.9",
|
|
77
|
-
"@types/picomatch": "^3.0.2",
|
|
78
|
-
"bun-types": "1.3.6",
|
|
79
|
-
"typescript": "^5.7.3"
|
|
80
|
-
},
|
|
81
|
-
"optionalDependencies": {
|
|
82
|
-
"oh-my-opencode-darwin-arm64": "3.9.0",
|
|
83
|
-
"oh-my-opencode-darwin-x64": "3.9.0",
|
|
84
|
-
"oh-my-opencode-darwin-x64-baseline": "3.9.0",
|
|
85
|
-
"oh-my-opencode-linux-arm64": "3.9.0",
|
|
86
|
-
"oh-my-opencode-linux-arm64-musl": "3.9.0",
|
|
87
|
-
"oh-my-opencode-linux-x64": "3.9.0",
|
|
88
|
-
"oh-my-opencode-linux-x64-baseline": "3.9.0",
|
|
89
|
-
"oh-my-opencode-linux-x64-musl": "3.9.0",
|
|
90
|
-
"oh-my-opencode-linux-x64-musl-baseline": "3.9.0",
|
|
91
|
-
"oh-my-opencode-windows-x64": "3.9.0",
|
|
92
|
-
"oh-my-opencode-windows-x64-baseline": "3.9.0"
|
|
93
|
-
},
|
|
94
|
-
"trustedDependencies": [
|
|
95
|
-
"@ast-grep/cli",
|
|
96
|
-
"@ast-grep/napi",
|
|
97
|
-
"@code-yeongyu/comment-checker"
|
|
98
|
-
]
|
|
99
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "oh-my-opencode-unguarded",
|
|
3
|
+
"version": "3.9.3",
|
|
4
|
+
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"bin": {
|
|
9
|
+
"oh-my-opencode-unguarded": "bin/oh-my-opencode.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"bin",
|
|
14
|
+
"postinstall.mjs"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./schema.json": "./dist/oh-my-opencode.schema.json"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
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
|
+
"build:schema": "bun run script/build-schema.ts",
|
|
28
|
+
"clean": "rm -rf dist",
|
|
29
|
+
"postinstall": "node postinstall.mjs",
|
|
30
|
+
"prepublishOnly": "bun run clean && bun run build",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"test": "bun test"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"opencode",
|
|
36
|
+
"plugin",
|
|
37
|
+
"oracle",
|
|
38
|
+
"librarian",
|
|
39
|
+
"agents",
|
|
40
|
+
"ai",
|
|
41
|
+
"llm"
|
|
42
|
+
],
|
|
43
|
+
"author": "D4ch1au",
|
|
44
|
+
"license": "SUL-1.0",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/D4ch1au/evil-oh-my-opencode.git"
|
|
48
|
+
},
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/D4ch1au/evil-oh-my-opencode/issues"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://github.com/D4ch1au/evil-oh-my-opencode#readme",
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"registry": "https://registry.npmjs.org",
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@ast-grep/cli": "^0.40.0",
|
|
59
|
+
"@ast-grep/napi": "^0.40.0",
|
|
60
|
+
"@clack/prompts": "^0.11.0",
|
|
61
|
+
"@code-yeongyu/comment-checker": "^0.6.1",
|
|
62
|
+
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
63
|
+
"@opencode-ai/plugin": "^1.1.19",
|
|
64
|
+
"@opencode-ai/sdk": "^1.1.19",
|
|
65
|
+
"commander": "^14.0.2",
|
|
66
|
+
"detect-libc": "^2.0.0",
|
|
67
|
+
"diff": "^8.0.3",
|
|
68
|
+
"js-yaml": "^4.1.1",
|
|
69
|
+
"jsonc-parser": "^3.3.1",
|
|
70
|
+
"picocolors": "^1.1.1",
|
|
71
|
+
"picomatch": "^4.0.2",
|
|
72
|
+
"vscode-jsonrpc": "^8.2.0",
|
|
73
|
+
"zod": "^4.1.8"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@types/js-yaml": "^4.0.9",
|
|
77
|
+
"@types/picomatch": "^3.0.2",
|
|
78
|
+
"bun-types": "1.3.6",
|
|
79
|
+
"typescript": "^5.7.3"
|
|
80
|
+
},
|
|
81
|
+
"optionalDependencies": {
|
|
82
|
+
"oh-my-opencode-darwin-arm64": "3.9.0",
|
|
83
|
+
"oh-my-opencode-darwin-x64": "3.9.0",
|
|
84
|
+
"oh-my-opencode-darwin-x64-baseline": "3.9.0",
|
|
85
|
+
"oh-my-opencode-linux-arm64": "3.9.0",
|
|
86
|
+
"oh-my-opencode-linux-arm64-musl": "3.9.0",
|
|
87
|
+
"oh-my-opencode-linux-x64": "3.9.0",
|
|
88
|
+
"oh-my-opencode-linux-x64-baseline": "3.9.0",
|
|
89
|
+
"oh-my-opencode-linux-x64-musl": "3.9.0",
|
|
90
|
+
"oh-my-opencode-linux-x64-musl-baseline": "3.9.0",
|
|
91
|
+
"oh-my-opencode-windows-x64": "3.9.0",
|
|
92
|
+
"oh-my-opencode-windows-x64-baseline": "3.9.0"
|
|
93
|
+
},
|
|
94
|
+
"trustedDependencies": [
|
|
95
|
+
"@ast-grep/cli",
|
|
96
|
+
"@ast-grep/napi",
|
|
97
|
+
"@code-yeongyu/comment-checker"
|
|
98
|
+
]
|
|
99
|
+
}
|
package/postinstall.mjs
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
// postinstall.mjs
|
|
2
|
-
// Runs after npm install to verify platform binary is available
|
|
3
|
-
|
|
4
|
-
import { createRequire } from "node:module";
|
|
5
|
-
import { getPlatformPackageCandidates, getBinaryPath } from "./bin/platform.js";
|
|
6
|
-
|
|
7
|
-
const require = createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Detect libc family on Linux
|
|
11
|
-
*/
|
|
12
|
-
function getLibcFamily() {
|
|
13
|
-
if (process.platform !== "linux") {
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
try {
|
|
18
|
-
const detectLibc = require("detect-libc");
|
|
19
|
-
return detectLibc.familySync();
|
|
20
|
-
} catch {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function main() {
|
|
26
|
-
const { platform, arch } = process;
|
|
27
|
-
const libcFamily = getLibcFamily();
|
|
28
|
-
|
|
29
|
-
try {
|
|
30
|
-
const packageCandidates = getPlatformPackageCandidates({
|
|
31
|
-
platform,
|
|
32
|
-
arch,
|
|
33
|
-
libcFamily,
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
const resolvedPackage = packageCandidates.find((pkg) => {
|
|
37
|
-
try {
|
|
38
|
-
require.resolve(getBinaryPath(pkg, platform));
|
|
39
|
-
return true;
|
|
40
|
-
} catch {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
if (!resolvedPackage) {
|
|
46
|
-
throw new Error(
|
|
47
|
-
`No platform binary package installed. Tried: ${packageCandidates.join(", ")}`
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
console.log(`✓ oh-my-opencode binary installed for ${platform}-${arch} (${resolvedPackage})`);
|
|
52
|
-
} catch (error) {
|
|
53
|
-
console.warn(`⚠ oh-my-opencode: ${error.message}`);
|
|
54
|
-
console.warn(` The CLI may not work on this platform.`);
|
|
55
|
-
// Don't fail installation - let user try anyway
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
main();
|
|
1
|
+
// postinstall.mjs
|
|
2
|
+
// Runs after npm install to verify platform binary is available
|
|
3
|
+
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
import { getPlatformPackageCandidates, getBinaryPath } from "./bin/platform.js";
|
|
6
|
+
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Detect libc family on Linux
|
|
11
|
+
*/
|
|
12
|
+
function getLibcFamily() {
|
|
13
|
+
if (process.platform !== "linux") {
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
try {
|
|
18
|
+
const detectLibc = require("detect-libc");
|
|
19
|
+
return detectLibc.familySync();
|
|
20
|
+
} catch {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function main() {
|
|
26
|
+
const { platform, arch } = process;
|
|
27
|
+
const libcFamily = getLibcFamily();
|
|
28
|
+
|
|
29
|
+
try {
|
|
30
|
+
const packageCandidates = getPlatformPackageCandidates({
|
|
31
|
+
platform,
|
|
32
|
+
arch,
|
|
33
|
+
libcFamily,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const resolvedPackage = packageCandidates.find((pkg) => {
|
|
37
|
+
try {
|
|
38
|
+
require.resolve(getBinaryPath(pkg, platform));
|
|
39
|
+
return true;
|
|
40
|
+
} catch {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
if (!resolvedPackage) {
|
|
46
|
+
throw new Error(
|
|
47
|
+
`No platform binary package installed. Tried: ${packageCandidates.join(", ")}`
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
console.log(`✓ oh-my-opencode binary installed for ${platform}-${arch} (${resolvedPackage})`);
|
|
52
|
+
} catch (error) {
|
|
53
|
+
console.warn(`⚠ oh-my-opencode: ${error.message}`);
|
|
54
|
+
console.warn(` The CLI may not work on this platform.`);
|
|
55
|
+
// Don't fail installation - let user try anyway
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
main();
|