omnara 0.2.0 → 0.2.1
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 +12 -11
- package/dist/cli.js.map +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9634,7 +9634,7 @@ var FALLBACK_NAME = pkg.name ?? "omnara";
|
|
|
9634
9634
|
var FALLBACK_VERSION = pkg.version ?? "0.0.0";
|
|
9635
9635
|
var FALLBACK_DESCRIPTION = pkg.description ?? "Command-line interface for Omnara.";
|
|
9636
9636
|
var PACKAGE_NAME = true ? "omnara" : FALLBACK_NAME;
|
|
9637
|
-
var PACKAGE_VERSION = true ? "0.2.
|
|
9637
|
+
var PACKAGE_VERSION = true ? "0.2.1" : FALLBACK_VERSION;
|
|
9638
9638
|
var PACKAGE_DESCRIPTION = true ? "Command-line interface for Omnara." : FALLBACK_DESCRIPTION;
|
|
9639
9639
|
|
|
9640
9640
|
// src/daemon/machine-supervisor.ts
|
|
@@ -9779,9 +9779,7 @@ var MachineSupervisor = class {
|
|
|
9779
9779
|
response = await registerMachine(this.apiClient, accessToken, payload);
|
|
9780
9780
|
} catch (error) {
|
|
9781
9781
|
if (error instanceof ApiError && error.status === 404 && config.machine?.id) {
|
|
9782
|
-
this.logger.warn(
|
|
9783
|
-
`Stored machine id ${config.machine.id} was not found. Re-registering.`
|
|
9784
|
-
);
|
|
9782
|
+
this.logger.warn(`Stored machine id ${config.machine.id} was not found. Re-registering.`);
|
|
9785
9783
|
await this.configStore.update((current) => {
|
|
9786
9784
|
current.machine = {
|
|
9787
9785
|
name: machineName
|
|
@@ -10521,14 +10519,17 @@ async function performClaudeCodeCheck() {
|
|
|
10521
10519
|
if (message.apiKeySource === "none") {
|
|
10522
10520
|
console.log(
|
|
10523
10521
|
chalk4.red(
|
|
10524
|
-
"\nOmnara didn't detect a valid API key. Login via `claude login` or pass in a valid ANTHROPIC_API_KEY as an environment variable.\n"
|
|
10522
|
+
"\nOmnara didn't detect a valid API key. Login via `claude /login` or pass in a valid ANTHROPIC_API_KEY as an environment variable.\n"
|
|
10525
10523
|
)
|
|
10526
10524
|
);
|
|
10527
10525
|
return false;
|
|
10528
10526
|
} else {
|
|
10529
|
-
console.log(
|
|
10527
|
+
console.log(
|
|
10528
|
+
chalk4.gray(`
|
|
10530
10529
|
Omnara is using ${message.apiKeySource} for Claude Code access
|
|
10531
|
-
`)
|
|
10530
|
+
`)
|
|
10531
|
+
);
|
|
10532
|
+
return true;
|
|
10532
10533
|
}
|
|
10533
10534
|
}
|
|
10534
10535
|
}
|
|
@@ -10564,14 +10565,14 @@ function createProgram() {
|
|
|
10564
10565
|
}
|
|
10565
10566
|
async function run(argv) {
|
|
10566
10567
|
const program = createProgram();
|
|
10567
|
-
const authenticated = await performClaudeCodeCheck();
|
|
10568
|
-
if (!authenticated) {
|
|
10569
|
-
return;
|
|
10570
|
-
}
|
|
10571
10568
|
const reinstalled = await attemptUpdate();
|
|
10572
10569
|
if (reinstalled) {
|
|
10573
10570
|
return;
|
|
10574
10571
|
}
|
|
10572
|
+
const authenticated = await performClaudeCodeCheck();
|
|
10573
|
+
if (!authenticated) {
|
|
10574
|
+
return;
|
|
10575
|
+
}
|
|
10575
10576
|
try {
|
|
10576
10577
|
await program.parseAsync(argv);
|
|
10577
10578
|
} catch (error) {
|