vibora 9.2.1 → 9.2.2
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/bin/vibora.js +1 -1
- package/dist/assets/{index-CHmycy3p.js → index-BoBlRY9B.js} +91 -91
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/server/index.js +22 -0
package/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/png" href="/logo.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Vibora - Harness Attention. Ship.</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-BoBlRY9B.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-_KUkjbkF.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -180049,13 +180049,35 @@ function isClaudeCodeInstalled() {
|
|
|
180049
180049
|
}
|
|
180050
180050
|
return { installed: false };
|
|
180051
180051
|
}
|
|
180052
|
+
function isOpenCodeInstalled() {
|
|
180053
|
+
const pathCheck = isCommandAvailable("opencode");
|
|
180054
|
+
if (pathCheck.installed) {
|
|
180055
|
+
return pathCheck;
|
|
180056
|
+
}
|
|
180057
|
+
const commonPaths = [
|
|
180058
|
+
join15(homedir6(), ".opencode", "bin", "opencode"),
|
|
180059
|
+
join15(homedir6(), ".local", "bin", "opencode"),
|
|
180060
|
+
"/usr/local/bin/opencode",
|
|
180061
|
+
"/opt/homebrew/bin/opencode"
|
|
180062
|
+
];
|
|
180063
|
+
for (const path9 of commonPaths) {
|
|
180064
|
+
if (existsSync14(path9)) {
|
|
180065
|
+
return { installed: true, path: path9 };
|
|
180066
|
+
}
|
|
180067
|
+
}
|
|
180068
|
+
return { installed: false };
|
|
180069
|
+
}
|
|
180052
180070
|
app13.get("/dependencies", (c) => {
|
|
180053
180071
|
const claudeInstalledFromEnv = process.env.VIBORA_CLAUDE_INSTALLED === "1";
|
|
180054
180072
|
const claudeMissingFromEnv = process.env.VIBORA_CLAUDE_MISSING === "1";
|
|
180055
180073
|
const claudeCheck = claudeInstalledFromEnv ? { installed: true } : claudeMissingFromEnv ? { installed: false } : isClaudeCodeInstalled();
|
|
180074
|
+
const openCodeInstalledFromEnv = process.env.VIBORA_OPENCODE_INSTALLED === "1";
|
|
180075
|
+
const openCodeMissingFromEnv = process.env.VIBORA_OPENCODE_MISSING === "1";
|
|
180076
|
+
const openCodeCheck = openCodeInstalledFromEnv ? { installed: true } : openCodeMissingFromEnv ? { installed: false } : isOpenCodeInstalled();
|
|
180056
180077
|
const dtachCheck = isCommandAvailable("dtach");
|
|
180057
180078
|
return c.json({
|
|
180058
180079
|
claudeCode: claudeCheck,
|
|
180080
|
+
openCode: openCodeCheck,
|
|
180059
180081
|
dtach: dtachCheck
|
|
180060
180082
|
});
|
|
180061
180083
|
});
|