omnara 0.2.2 → 0.2.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/dist/cli.js +4 -25
- package/dist/cli.js.map +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9860,7 +9860,7 @@ var FALLBACK_NAME = pkg.name ?? "omnara";
|
|
|
9860
9860
|
var FALLBACK_VERSION = pkg.version ?? "0.0.0";
|
|
9861
9861
|
var FALLBACK_DESCRIPTION = pkg.description ?? "Command-line interface for Omnara.";
|
|
9862
9862
|
var PACKAGE_NAME = true ? "omnara" : FALLBACK_NAME;
|
|
9863
|
-
var PACKAGE_VERSION = true ? "0.2.
|
|
9863
|
+
var PACKAGE_VERSION = true ? "0.2.3" : FALLBACK_VERSION;
|
|
9864
9864
|
var PACKAGE_DESCRIPTION = true ? "Command-line interface for Omnara." : FALLBACK_DESCRIPTION;
|
|
9865
9865
|
|
|
9866
9866
|
// src/daemon/machine-supervisor.ts
|
|
@@ -10740,38 +10740,17 @@ async function performClaudeCodeCheck() {
|
|
|
10740
10740
|
prompt: "Respond with one word.",
|
|
10741
10741
|
options: { maxTurns: 1, model: "haiku", settingSources: ["user", "project", "local"] }
|
|
10742
10742
|
})) {
|
|
10743
|
-
|
|
10744
|
-
if (message.subtype === "init") {
|
|
10745
|
-
if (message.apiKeySource !== "none") {
|
|
10746
|
-
console.log(
|
|
10747
|
-
chalk4.gray(`
|
|
10748
|
-
Omnara is using ${message.apiKeySource} for Claude Code access
|
|
10749
|
-
`)
|
|
10750
|
-
);
|
|
10751
|
-
return true;
|
|
10752
|
-
}
|
|
10753
|
-
}
|
|
10754
|
-
}
|
|
10755
|
-
if (message.type === "result" && message.subtype === "success") {
|
|
10756
|
-
console.log(
|
|
10757
|
-
chalk4.gray(`
|
|
10758
|
-
Omnara detected a Pro/Max subscription for Claude Code access
|
|
10759
|
-
`)
|
|
10760
|
-
);
|
|
10761
|
-
return true;
|
|
10762
|
-
} else {
|
|
10763
|
-
throw new Error("Failed to generate");
|
|
10764
|
-
}
|
|
10743
|
+
void message;
|
|
10765
10744
|
}
|
|
10745
|
+
return true;
|
|
10766
10746
|
} catch {
|
|
10767
10747
|
console.log(
|
|
10768
10748
|
chalk4.red(
|
|
10769
|
-
"\nError: Omnara
|
|
10749
|
+
"\nError: Omnara couldn't run because it relies on Claude Code, which isn't installed or authenticated. Try running `claude /login`.\n"
|
|
10770
10750
|
)
|
|
10771
10751
|
);
|
|
10772
10752
|
return false;
|
|
10773
10753
|
}
|
|
10774
|
-
return true;
|
|
10775
10754
|
}
|
|
10776
10755
|
|
|
10777
10756
|
// src/cli.ts
|