@aria_asi/cli 0.2.17 → 0.2.18
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/aria.js +12 -2
- package/dist/sdk/BUNDLED.json +1 -1
- package/package.json +1 -1
package/bin/aria.js
CHANGED
|
@@ -187,9 +187,14 @@ if (command === 'check-update') {
|
|
|
187
187
|
const pathMod = require('path');
|
|
188
188
|
const osMod = require('os');
|
|
189
189
|
const LICENSE_PATH = pathMod.join(osMod.homedir(), '.aria', 'license.json');
|
|
190
|
+
const OWNER_TOKEN_PATH = pathMod.join(osMod.homedir(), '.aria', 'owner-token');
|
|
190
191
|
const hasLicense = fsMod.existsSync(LICENSE_PATH);
|
|
192
|
+
// Hamza 2026-04-27: owner-token presence means the user already authenticated
|
|
193
|
+
// via `aria login --owner`. Without this check, the wizard fires every time
|
|
194
|
+
// because owner-mode never writes license.json (master JWT goes to owner-token).
|
|
195
|
+
const hasOwnerToken = fsMod.existsSync(OWNER_TOKEN_PATH);
|
|
191
196
|
|
|
192
|
-
if (!hasLicense) {
|
|
197
|
+
if (!hasLicense && !hasOwnerToken) {
|
|
193
198
|
const { runSetupWizard } = await import('../dist/aria-connector/src/setup-wizard.js');
|
|
194
199
|
await runSetupWizard();
|
|
195
200
|
process.exit(0);
|
|
@@ -199,7 +204,12 @@ if (command === 'check-update') {
|
|
|
199
204
|
|
|
200
205
|
const config = loadConfig();
|
|
201
206
|
|
|
202
|
-
|
|
207
|
+
// Owner-mode short-circuit: owner doesn't need a client provider/API key
|
|
208
|
+
// configured because /api/aria/speak uses server-side master credentials
|
|
209
|
+
// for primary-author dispatch (DeepSeek → Grok → NIM → Qwen Mac chain).
|
|
210
|
+
// The provider-config prompt is for client tier where the chain dispatches
|
|
211
|
+
// through the client's own LLM. Skip it for owner.
|
|
212
|
+
if (!config.model && !hasOwnerToken) {
|
|
203
213
|
const rl = require('readline').createInterface({
|
|
204
214
|
input: process.stdin,
|
|
205
215
|
output: process.stdout,
|
package/dist/sdk/BUNDLED.json
CHANGED